Moving Functions into Classes

The calculator you've constructed so far is not very different from an object-oriented C++ program. This lesson will document an object- oriented design of the calculator to show the differences.

The UML Diagram

The Unified Modeling Language (UML) is a standard way of drawing diagrams of object-oriented programs regardless of language. There are several types of UML diagrams, but you will be looking at only one of these: the class diagram.

A class diagram shows the classes that make up a program and their relationships (UML also calls these associations)—especially whether one class has member variables of another class. There is a single block for each class, and each block is divided into sections for the class ...

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.