Mapping Relationships in Java: Constructors & Polymorphism

Java    |    Intermediate
  • 14 videos | 1h 55m 5s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 86 users Rating 4.5 of 86 users (86)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 1m 28s
  • 6m 36s
  • Locked
    3.  Using the Super Keyword
    9m 35s
  • Locked
    4.  Invoking Base Class Constructors via Derived Classes
    9m 54s
  • Locked
    5.  Investigating Nuances of Derived Class Constructors
    9m 18s
  • Locked
    6.  Reusing Constructors Using super() and this()
    9m 7s
  • Locked
    7.  Characterizing Runtime Polymorphism
    8m 58s
  • Locked
    8.  Invoking Methods Based on Runtime Types
    8m 56s
  • Locked
    9.  Understanding Dynamic Method Dispatch
    12m 3s
  • Locked
    10.  Investigating Compile-time Polymorphism
    10m 25s
  • Locked
    11.  Overloading Methods with Compile-time Polymorphism
    7m 23s
  • Locked
    12.  Invoking the Right Overloaded Method
    8m 13s
  • Locked
    13.  Performing Type Promotion and Coercion
    10m 30s
  • Locked
    14.  Course Summary
    2m 40s

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 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 4.7 of 84 users Rating 4.7 of 84 users (84)
Rating 4.6 of 36 users Rating 4.6 of 36 users (36)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 38 users Rating 4.4 of 38 users (38)
Rating 4.6 of 213 users Rating 4.6 of 213 users (213)
Rating 4.6 of 60 users Rating 4.6 of 60 users (60)