im a java high school student and im just a beginner and my teacher gave me this OOP scenario that i thought about for so long but didnt know how to design a program for it.
The scenario is: "A Quadrilateral has LineSegments. A LineSegment is made up of 2 Points (with coordinates).
Then my task was to think of verbs that fit and could be added to this class and code methods for the class.
I thought about it and im not sure whether to use the Point class in the program for this or use a LineSegment class? Im so confused..
Can someone please help me. I will be so grateful if anybody can give me any clues.
The scenario is: "A Quadrilateral has LineSegments. A LineSegment is made up of 2 Points (with coordinates).
Then my task was to think of verbs that fit and could be added to this class and code methods for the class.
I thought about it and im not sure whether to use the Point class in the program for this or use a LineSegment class? Im so confused..
Can someone please help me. I will be so grateful if anybody can give me any clues.
Comment