‘Public law has grown to meet the needs of justice on the one hand and of good government on the other by holding public administration to as much of its….
Deﬁne a class Figure and use inheritance to deﬁ ne the classes Triangle, Square, Circle, and Rectangle.
1. Deﬁne a class Figure and use inheritance to deﬁ ne the classes Triangle, Square, Circle, and Rectangle. Provide a container class Frame to contain any number of ﬁ gures, possibly overlapped in position. Provide operations for drawing frames on the screen and for inserting, modifying, and deleting frames and the contents of frames. (Actual drawing is not required).
2. Write a program to represent part as an object. A part can contain other parts as members. Provide operations to list all the required ingredient parts for any given part looking at the deepest of the hierarchy. Provide routines for inserting and removing parts or the information related to parts.