Java OOP: The Role of Constructors in Inheritance

Java    |    Intermediate
  • 8 videos | 58m 19s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 49 users Rating 4.5 of 49 users (49)
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 course
    Identify the role of access modifiers and recognize the basics of constructors
    Recognize when you add your own constructor, java takes away the default no-argument constructor it had provided
    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
  • Recognize that a base class's constructor is invoked when a derived class object is instantiated
    Identify what happens when there is a base and derived class that have many different constructors
    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
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 42s
  • 10m 57s
    In this video, you will learn how to identify the role of access modifiers and recognize the basics of constructors. FREE ACCESS
  • Locked
    3.  Introduction to Constructors
    7m 6s
    Upon completion of this video, you will be able to recognize when you add your own constructor, Java takes away the default no-argument constructor it had provided. FREE ACCESS
  • Locked
    4.  Using the super Keyword
    8m 9s
    In this video, you will learn how to apply the two ways of initializing derived classes - implementing an explicit no argument constructor in the base class or using the super keyword and having only parameterized constructors in both the base and derived classes. FREE ACCESS
  • Locked
    5.  Default and Parameterized Constructors
    9m 11s
    Upon completion of this video, you will be able to recognize that a base class's constructor is invoked when a derived class object is instantiated. FREE ACCESS
  • Locked
    6.  Invoking Base Class Constructors
    9m 17s
    Find out how to identify what happens when there is a base and derived class that have many different methods. FREE ACCESS
  • Locked
    7.  Initializing Member Variables
    10m 29s
    Learn how to add a member variable into a derived class and ensure it is correctly initialized, even if the base class constructor is invoked. FREE ACCESS
  • Locked
    8.  Course Summary
    1m 29s

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.4 of 22 users Rating 4.4 of 22 users (22)
Rating 4.8 of 31 users Rating 4.8 of 31 users (31)
Rating 4.8 of 47 users Rating 4.8 of 47 users (47)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.7 of 38 users Rating 4.7 of 38 users (38)
Rating 4.8 of 31 users Rating 4.8 of 31 users (31)
Rating 4.8 of 19 users Rating 4.8 of 19 users (19)