Skip to Main Content
C++ Programming
book

C++ Programming

by Yuan Dong, Fang Yang, Li Zheng, Tsinghua University Tsinghua University Press
February 2019
Beginner content levelBeginner
504 pages
14h 34m
English
De Gruyter
Content preview from C++ Programming

7Inheritance and Derivation

Programming mainly aims at describing and solving problems in the real world. Class in C++ effectively adopts human thinking methods of abstraction and classification. The relationship between an object and a class appropriately reflects the relationship between an individual and a group that has common features. A closer observation of the real world reveals that different things are not independent from each other, but instead they have complicated relationships. Inheritance is one such relationship. For example, children often resemble their parents, while clear distinctions exist between them. Both cars and bicycles belong to an abstract category: vehicles, but they differ from each other not only in appearance ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan

Publisher Resources

ISBN: 9783110470666