I’m having trouble understanding what these terms mean , if someone could explain it to me, i would appreciate it.
I already have 3 classes called :
Shape
Rectangle
Circle
and then I create a class called Triangle
a) what does it mean when they say create a specification of a Triangle ADT similar specification to the Rectangle ADT(above class that I already have )
b) implement the class Triangle
“Create the specification of a Triangle ADT” means to define what data you would need to define a triangle (three Cartesian coordinates is the most straightforward, but it could be a single point, 3 angles and a side length, or something else).
“Implement the class Triangle” means to write a java class that
implements Shapebut whose internal implementation is the representation in java of your definition from step 1.