O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required