April 2011
Beginner
624 pages
11h 34m
English
It’s time to turn toward a new vista: the world of classes and objects. Up until now, you’ve read about features that are either already in the old C language or represent small refinements to that language.
The major feature of C++ is that it adds this new capability—classes—to the C language. (There’s also another big feature called templates we’ll get to in Chapter 16.) And to understand what classes are all about, we’ll develop a class that’s particularly useful and not too difficult to write: the Fraction class.
Before embarking on the journey of creating a Fraction class, let me say a few words as to why the journey is necessary. In other words, ...
Read now
Unlock full access