PROGRAMMING:Class inheritance and derivation
Define the planar two-dimensional point class CPoint, including data member X coordinate, y coordinate, function member (constructor), copy constructor, virtual function for area getarea, virtual function for volume function getvolume, and output point information function print. From CPoint class, cirle class (radius of new data member), function member (constructor, copy constructor, getarea of area, getvolume of virtual function and print of output circle information function) are derived.
Then, the cylinder ccylinder class (height of new data member), function members (constructor, copy constructor, getarea of surface area, getvolume of volume function and print of output cylinder information function) are derived from ccirle class. Test the three classes in the main function.
###Input format:
For example, the first line reads the coordinates of the center of the circle.
1 2 read the radius and height in the second line.
###Output format:
Output in four lines, representing center, bottom area, surface area and volume.
###Input example:
Here is a set of inputs. For example:
```in
0 0
1 2
```
###Output example:
The corresponding output is given here. For example:
```out
Center:(0,0)
radius=1
height:2
BasalA rea:3.14159
SupfaceA rea:18.8496
V olume:6.28319
```
answer:If there is no answer, please comment
Then, the cylinder ccylinder class (height of new data member), function members (constructor, copy constructor, getarea of surface area, getvolume of volume function and print of output cylinder information function) are derived from ccirle class. Test the three classes in the main function.
###Input format:
For example, the first line reads the coordinates of the center of the circle.
1 2 read the radius and height in the second line.
###Output format:
Output in four lines, representing center, bottom area, surface area and volume.
###Input example:
Here is a set of inputs. For example:
```in
0 0
1 2
```
###Output example:
The corresponding output is given here. For example:
```out
Center:(0,0)
radius=1
height:2
BasalA rea:3.14159
SupfaceA rea:18.8496
V olume:6.28319
```
answer:If there is no answer, please comment