Java OOP: Multi-level Inheritance
Java
| 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
-
2m 7s
-
6m 32sUpon completion of this video, you will be able to recognize how you can access multiple derived classes by using a base class in multilevel inheritance. FREE ACCESS
-
5m 13sIn this video, you will use the instanceof operator to check that an object is an instance of every class in its inheritance hierarchy. FREE ACCESS
-
6m 2sAfter completing this video, you will be able to recognize 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. FREE ACCESS
-
7m 18sAfter completing this video, you will be able to recognize how you can upcast multiple levels up, and how downcasting is very dangerous. FREE ACCESS
-
9m 14sFind out how to perform various types of casting. FREE ACCESS
-
10m 2sFind out how to construct two parallel base classes and two derived classes for each of those base classes. FREE ACCESS
-
8m 32sAfter completing this video, you will be able to recognize situations where multiple inheritance is not allowed. FREE ACCESS
-
1m 34s
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.