Create a hierarchy of java classes as follows:

myline is_a myshape; myrectangle is_a myshape; mycircle is_a myshape. class mypoint:

class mypoint is used by class myshape to define the reference point, p(x, y), of the java display coordinate system, as well as by all subclasses in the class hierarchy to define the points stipulated in the subclass definition.



Answer :

Other Questions