Java OOP: The Role of Constructors in Inheritance
Java SE 13
| Intermediate
- 8 Videos | 58m 19s
- Includes Assessment
- Earns a Badge
In this course, you will learn the role of constructors and how to use the super keyword in architecting inheritance hierarchies in Java. You will begin by identifying the role of access modifiers and recognizing the basics of superclass constructors. When you add your own constructor, you will see that Java takes away the default no-argument constructor it had provided. You will learn how to apply the two ways of initializing derived classes: implement an explicit no argument constructor in the base class or use the super keyword and have only parameterized constructors in both the base and derived classes. You will recognize that a base class's constructor is invoked when a derived class object is instantiated and identify what happens when there is a base and derived class that have many different constructors. You will be able to initialize member variables: add a member variable into a derived class and ensure it is correctly initialized, even in addition to any invocations of the base class constructor.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courseidentify the role of access modifiers and recognize the basics of constructorsrecognize when you add your own constructor, Java takes away the default no-argument constructor it had providedapply the two ways of initializing derived classes - implement an explicit no argument constructor in the base class or use the super keyword and have only parameterized constructors in both the base and derived classes
-
recognize that a base class's constructor is invoked when a derived class object is instantiatedidentify what happens when there is a base and derived class that have many different constructorsadd a member variable into a derived class and ensure it is correctly initialized, even in addition to any invocations of the base class constructorsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview1m 42sUP NEXT
-
2.Access Modifiers and Superclass Constructors10m 57s
-
3.Introduction to Constructors7m 6s
-
4.Using the super Keyword8m 9s
-
5.Default and Parameterized Constructors9m 11s
-
6.Invoking Base Class Constructors9m 17s
-
7.Initializing Member Variables10m 29s
-
8.Course Summary1m 29s
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.