C++ OOP and recording
Building a C++ hierarchical class model that reflects the model of real objects. Identify the fields and methods of the objects of the developed starting class and all direct and mediated basic classes. Depending on the specific task in the construction of the hierarchical model to use both heritage and aggregation. Data of the following classes:
The point {x,y}
Figure{point (coordinate the center of the figure),Name of the figure};
The rainbow;
Triangle { 3 points - coordinates 3 top};
The side, the side, the side;
Ellipse {Figure, radius1, radius2};
A massive figure on the screen {a massive consists of a series of kills, triangles, rectangles, elips}.
The average value of the area of all the elements of the massive figure and the average value of the center of all the figures on the screen.
The point {x,y}
Figure{point (coordinate the center of the figure),Name of the figure};
The rainbow;
Triangle { 3 points - coordinates 3 top};
The side, the side, the side;
Ellipse {Figure, radius1, radius2};
A massive figure on the screen {a massive consists of a series of kills, triangles, rectangles, elips}.
The average value of the area of all the elements of the massive figure and the average value of the center of all the figures on the screen.