The class Shape {
Public:
//...
Virtual double area () {}
};
The class Circle: public Shape {
Public:
Double area () {... }
//...
};
The class Triangle: public Shape {
Public:
Double area () {... }
//...
};
//...
The following for container classes:
The class Manage {
Shape * a, [100].
Public:
//...
}
Asked to complete the Manage class copy constructor, deep copy; Can change all the classes, and gives the main function test program,
CodePudding user response:
Mainly is to make a copy the two dimensional array