Multiple choice technology programming languages

Can constructors be overloaded?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Constructors can be overloaded by defining multiple constructors with different parameter lists, allowing objects to be initialized in different ways.

AI explanation

Yes — constructors can be overloaded just like methods, meaning a class can define multiple constructors with different parameter lists (different number or types of parameters). The compiler picks the matching constructor based on the arguments supplied when an object is created.