< Previous | Next >

Introduction: Extend a C++ application by using the UML visual development tools

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.
In this tutorial, you use the UML visual development tools to view the hierarchy and structure of the C++ Shapes project. You add a new method called getCircumference to both the sphere and circle classes that calculates and displays the circumference of the shape by using the radius. In the final exercise, you use the UML visualize development tools to add the cone shape to the project. The cone class inherits from the shapes3d class to represent a cone.

Learning objectives

This tutorial explains how to visualize and extend a C++ application by using the UML visual development tools. Specifically, the tutorial shows you how to do the following things:

Time required

60 minutes

Skill level

Intermediate

Audience

This tutorial is intended for intermediate users of IBM Rational modeling tools with knowledge of UML and basic C++.

System requirements

Prerequisites

To complete this tutorial, you must be familiar with the following concepts:
< Previous | Next >

Feedback