February 2022
Beginner
848 pages
22h 40m
English
Object-oriented programming is based on four important concepts: encapsulation, abstraction, inheritance, and polymorphism. Inheritance is a powerful way to reuse attributes and is a stepping stone toward polymorphism.
In this lesson, you find out about
■ Inheritance in the context of programming
■ The C++ syntax of inheritance
■ Public, private, and protected inheritance
■ Multiple inheritance
■ Problems caused by hiding base class methods and slicing
What Tom Smith inherits from his forefathers is first and foremost his family name that makes him a Smith. In addition, he inherits certain values that his parents have taught him and a skill at sculpting wood that has been ...
Read now
Unlock full access