Java OOP: Multi-level Inheritance
Java SE 13
| Intermediate
- 9 Videos | 56m 34s
- Includes Assessment
- Earns a Badge
In this course, learners will focus on creation of multilevel inheritance in Java and how such hierarchies include child and grand-child classes that all inherit from a common ancestor base class. Begin with an introduction to multilevel inheritance, and how you can access multiple derived classes by using a base class in multilevel inheritance. Explore use of the instanceof operator, where you can check that an object is an instance of every class in its inheritance hierarchy. Concerning the Is-A Relationship, you will learn how to apply multilevel inheritance when every object of the derived class is an object of the base class, but not every object of the base class is an object of the derived class. Examine downcasting; see how to upcast multiple levels; learn why downcasting is very dangerous; and perform various upcasting operations. After moving on to multilevel inheritance hierarchies, you will construct two parallel base classes and derived classes for each of those base classes. Finally, explore use of the extends keyword, recognizing situations where multiple inheritance is allowed.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courserecognize how you can access multiple derived classes by using a base class in multilevel inheritanceuse the instanceof operator to check that an object is an instance of every class in its inheritance hierarchyrecognize how to apply multilevel inheritance when every object of the derived class is an object of the base class, but not every object of the base class is an object of the derived classrecognize how you can upcast multiple levels up and how downcasting is very dangerous
-
perform various casting operationsconstruct two parallel base classes and derived classes for each of those base classesrecognize situations where multiple inheritance is not allowedsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 7sUP NEXT
-
2.Introduction to Multilevel Inheritance6m 32s
-
3.The instanceof Operator5m 13s
-
4.The Is-A Relationship6m 2s
-
5.Downcasting7m 18s
-
6.Up-casting9m 14s
-
7.Multilevel Inheritance Hierarchies10m 2s
-
8.The extends Keyword8m 32s
-
9.Course Summary1m 34s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.