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

4Class and Object

Everything in the real world we are familiar with is an object. Objects can not only be visible, as houses, cars, airplanes, animals and plants, but also be invisible, as a plan. Objects can be a simple unit, like a person; and they can also be a combination of several objects; for example, there are multiple departments in a company, and each department has several staff members. A class can be formed based on the common attributes abstracted from similar objects. These are the concepts and methods we are familiar with in the real world. The aim of programming is to describe and solve problems in the real world, so the first step is to describe objects and classes faithfully in programs. C++, an object-oriented programming ...

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