Programming Practice
Deitel and Deital, 4th edition, Chapter 20

20.14 Write a C++ program to implement a Shape class hierarchy. Base class Shape has two derived classes TwoDimensionalShape and ThreeDimensionShape. Class TwoDimensionalShape has two derived classes Circle and Square; class TheeDimensionalShape has two derived classes Sphere and Cube. Define classes Shape, TwoDimensionalShape, and ThreeDimensionalShape as abstract classes. Define classes Circle, Square, Sphere, and Cube as concrete classes.