C++ Inheritance & Polymorphism: Using Inheritance for is-a Relationships
C++
| Expert
- 14 videos | 1h 30m 39s
- Includes Assessment
- Earns a Badge
Inheritance is a powerful, object-oriented language construct in which one class can be related to another class using an is-a relationship. Using inheritance, you can construct complicated class hierarchies in which one class is a parent or a base of another class. Is-a relationships are a great way of performing object-oriented design and are complemented by has-a relationships, which are implemented using composition, rather than inheritance. Explore inheritance relationships by setting up an inheritance hierarchy in C++ and specifying one class as the parent of another class. Then discover how member variables and methods are accessible from the drive class, as well as from external code. Finally, investigate base class access specifiers, and find out how they work with member access specifiers. When you're finished, you'll clearly understand how to use inheritance for is-a relationships and how to identify uses for private inheritance.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseRecall how is-a relationships are modeled with inheritanceContrast is-a relationships and inheritance with has-a relationships and compositionInherit using public inheritanceAccess members of base and derived classesCompare public and private members of base classesUse the protected access modifier for derived and external classes
-
Differentiate the public, private, and protected access modifiersRecall how private, public, and protected inheritance worksUse the base class access specifierUse ‘protected’ as the base class access specifierImplement private inheritanceAccess fields from parent classes in child classes with the using keywordSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 36s
-
7m 57s
-
4m 57s
-
9m 14s
-
7m 41s
-
6m 43s
-
5m 48s
-
5m 17s
-
7m 22s
-
6m 52s
-
9m 52s
-
6m 12s
-
8m 25s
-
2m 43s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.