Title The Class for Representing a Point in the Euclidean Plane (Case 1)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_point__68bdb309f6cc3d7a9cc09771?index=0
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
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_point__68bdb309f6cc3d7a9cc09771?index=0
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output