5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Skills     Software Design and Development     Java     Mapping Relationships Using Inheritance and Interfaces
Runtime polymorphism involves variables of a base class containing objects of a derived class. Java uses dynamic binding to ensure that such variables are a powerful mechanism for writing clean, extensible, and correct code. This course takes you through the use of these advanced Java processes and mechanisms.
Examine how constructors work with inheritance, including the order of constructor invocation, the role of base and derived class constructors, and the super keyword.
Learn about runtime polymorphism and how this process of determining which implementation of a method to invoke at runtime is known as dynamic method dispatch.
As you advance, use compile-time polymorphism in Java through method overloading.
By the end of this course, you'll have a solid grasp of constructor invocation and both runtime and compile-time polymorphism in Java.

Objectives

Mapping Relationships in Java: Constructors & Polymorphism

  • discover the key concepts covered in this course
  • examine how the default constructor in the base class is used in the derived class
  • use the super keyword to invoke a base class constructor from a derived class
  • invoke base class constructors correctly from derived classes
  • investigate nuances while defining derived class constructors
  • reuse code using the super() and this() constructor invocations
  • recall the characteristics of runtime polymorphism
  • invoke the right methods based on the runtime types of objects
  • outline how runtime polymorphism uses dynamic method dispatch
  • identify compile-time polymorphism with overloaded methods
  • overload methods with the same name and different number and types of input arguments
  • recall how Java identifies and invokes the right overloaded method based on parameter types
  • perform type promotions and coercions in custom class inheritance hierarchies
  • summarize the key concepts covered in this course