Java OOP: Multi-level Inheritance

Java    |    Intermediate
  • 9 videos | 56m 34s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 54 users Rating 4.6 of 54 users (54)
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

  • 2m 7s
  • 6m 32s
    Upon 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
  • Locked
    3.  The instanceof Operator
    5m 13s
    In 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
  • Locked
    4.  The Is-A Relationship
    6m 2s
    After 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
  • Locked
    5.  Downcasting
    7m 18s
    After completing this video, you will be able to recognize how you can upcast multiple levels up, and how downcasting is very dangerous. FREE ACCESS
  • Locked
    6.  Up-casting
    9m 14s
    Find out how to perform various types of casting. FREE ACCESS
  • Locked
    7.  Multilevel Inheritance Hierarchies
    10m 2s
    Find out how to construct two parallel base classes and two derived classes for each of those base classes. FREE ACCESS
  • Locked
    8.  The extends Keyword
    8m 32s
    After completing this video, you will be able to recognize situations where multiple inheritance is not allowed. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 41 users Rating 4.7 of 41 users (41)
Rating 4.7 of 84 users Rating 4.7 of 84 users (84)
Channel Java
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.8 of 32 users Rating 4.8 of 32 users (32)
Rating 4.3 of 87 users Rating 4.3 of 87 users (87)
Rating 4.5 of 94 users Rating 4.5 of 94 users (94)