Intermediate Object-Oriented Programming Concepts
Q67 / 100

What is a "constructor chaining" (or calling another constructor from within a constructor, e.g. via super() or this())?

Correct! Well done.

Incorrect.

The correct answer is B) Calling one constructor from another (in the same or parent class) to avoid duplicating initialization logic

B

Correct Answer

Calling one constructor from another (in the same or parent class) to avoid duplicating initialization logic

Explanation

Constructor chaining lets one constructor reuse another's initialization logic, reducing duplication when multiple constructors exist.

Progress
67/100