Java OOP: Multi-level Inheritance

Java SE 13
  • 9 Videos | 1h 4s
  • Includes Assessment
  • Earns a Badge
Likes 32 Likes 32
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 course
    recognize how you can access multiple derived classes by using a base class in multilevel inheritance
    use the instanceof operator to check that an object is an instance of every class in its inheritance hierarchy
    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
    recognize how you can upcast multiple levels up and how downcasting is very dangerous
  • perform various casting operations
    construct two parallel base classes and derived classes for each of those base classes
    recognize situations where multiple inheritance is not allowed
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 7s
    UP NEXT
  • Playable
    2. 
    Introduction to Multilevel Inheritance
    6m 32s
  • Locked
    3. 
    The instanceof Operator
    5m 13s
  • Locked
    4. 
    The Is-A Relationship
    6m 2s
  • Locked
    5. 
    Downcasting
    7m 18s
  • Locked
    6. 
    Up-casting
    9m 14s
  • Locked
    7. 
    Multilevel Inheritance Hierarchies
    10m 2s
  • Locked
    8. 
    The extends Keyword
    8m 32s
  • Locked
    9. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 43 Likes 43  
Likes 34 Likes 34