Mapping Relationships in Java: Constructors & Polymorphism
Java
| Intermediate
- 14 videos | 1h 55m 5s
- Includes Assessment
- Earns a Badge
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 courseExamine how the default constructor in the base class is used in the derived classUse the super keyword to invoke a base class constructor from a derived classInvoke base class constructors correctly from derived classesInvestigate nuances while defining derived class constructorsReuse code using the super() and this() constructor invocationsRecall the characteristics of runtime polymorphism
-
Invoke the right methods based on the runtime types of objectsOutline how runtime polymorphism uses dynamic method dispatchIdentify compile-time polymorphism with overloaded methodsOverload methods with the same name and different number and types of input argumentsRecall how java identifies and invokes the right overloaded method based on parameter typesPerform type promotions and coercions in custom class inheritance hierarchiesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 28s
-
6m 36s
-
9m 35s
-
9m 54s
-
9m 18s
-
9m 7s
-
8m 58s
-
8m 56s
-
12m 3s
-
10m 25s
-
7m 23s
-
8m 13s
-
10m 30s
-
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.