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

Creating Interfaces

Some classes have a lot of implementation. They essentially stand alone like little programs—self-contained and rich in capabilities. anAccumulator is such a class.

Other classes provide a basic implementation for their descendants to extend in a general way. aTape is such a class.

Still others are designed to leverage virtual functions so that a specific feature can be extended or changed. anExternalInterface is such a class. It calls on certain of its own member functions that are intended to be overridden or extended by a descendant class.

Finally, some classes declare functions, but do not implement them, leaving implementation to their descendants. Such classes, often called interfaces or abstract classes, are intended ...

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