Asked by Laura Bouchie on May 17, 2024

verifed

Verified

You may substitute the keyword this for super)to call a constructor of the derived class.

Derived Class

A class that inherits properties and behavior from another class, known as the base class or superclass, extending or modifying its functionality.

This

A reference variable in object-oriented programming languages that refers to the current object.

Super

A keyword in many programming languages used to reference the immediate parent class of the current object.

  • Understand the use of 'this' and 'super' in Java constructors and their differences.
verifed

Verified Answer

HM
herlou mae guevaraMay 19, 2024
Final Answer :
True
Explanation :
The keyword "this" is used to call a constructor of the same class, whereas the keyword "super" is used to call a constructor of the base class. Therefore, to call a constructor of the derived class, we should use the keyword "super".