C++ Shapes sample details

The sample application, called Shapes, contains classes that represent 2-dimensional and 3-dimensional shapes. Each 2-dimensional class, such as the square class, inherits from the shapes2d class and each 3-dimensional class, such as the sphere class, inherits from the shapes3d class. When you run the application, you are prompted to specify a size and color for the new shape. The new shape information is then displayed in the Console view.

As the following figure illustrates, the Shapes sample has the following structure:The visualized structure of the Shapes project.

You can visualize and extend this sample UML project by using the UML visual development tools.


Feedback