Question: 6. Consider the problem of modeling a Point class. A Point object represents a point in the rectangular coordina system. A Point object has an
6. Consider the problem of modeling a Point class. A Point object represents a point in the rectangular coordina system. A Point object has an x-coordinate and a y-coordinate. Which of the following methods would not b good choice for a cohesive public interface for this class? Why? a. getx() b. setY(int newy); c. distancefromOrigin): no orgin in casc afectan . distanceFrom(Point a); e perimeter(Point a, Point b, Point c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
