Description: Shape into a contained interface (for the class hierarchy to use) an abstract base class. Derived from the class of two-dimensional shape of class Shape and three-dimensional shape of class TwoDimensionalShape ThreeDimensionalShape, they are abstract classes, and then use virtual function print the output for each class type and dimension. To calculate the class hierarchy for each specific class of objects, these two classes should also include the virtual function area and volume. Finally, write a program to test class hierarchy Shape
- [CShapeFile] - Company projects shape documents to read
- [shape] - using a C++ example to illustrate polymo
File list (Check if you may need any files):
shape\64.ncb
.....\Debug\vc60.idb
.....\.....\vc60.pdb
.....\.....\64.pch
.....\.....\64.ilk
.....\.....\64.exe
.....\.....\64.pdb
.....\.....\64.obj
.....\64.plg
.....\64.dsp
.....\64.cpp
.....\64.opt
.....\64.dsw
.....\Debug
shape