C++ shapes sample |
This sample C++ project contains classes that represent 2-dimensional and 3-dimensional shapes. Each shape has attributes, for example, size, color, and volume, that describe the appearance of the shape. The project contains 2-dimensional classes, such as the circle and square classes, that inherit from the shapes2d class, and 3-dimensional classes, such as sphere and cube classes, that inherit from the shapes3d class. The shapes2d and shapes3d classes inherit from the shapes class. When you run the program, the shape information is displayed in the Console view. You can modify the application to create and define instances of each shape object. You can use the UML visual development tools to view and edit the C++ shapes project. You must have a compatible C/C++ compiler installed in order to run this application. This application has no other dependencies. For instructions on how to run this sample application, click Setup Instructions. |
![]() |
![]() |
![]() |
![]() |