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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!