Title The Class for Representing a Point in the Euclidean Plane
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.point
Platform Name PCEX
Features
Description Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s integer coordinates (x,y). The class should also include getter and setter methods for accessing and changing the point's coordinates and a method to translate the point, i.e., shift the point's location by the specified amount.\n\nThe class PointTester1 instantiates an object from this class, sets the (x,y) coordinates of the point, and translates the point by the specified amount.
Keywords classes, object, objects
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.point
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview