Skip to content
Sharp

Object-oriented programming · interview question

Which statement is true about constructor overloading?

Multiple choiceEasychapter-2-curatedpremiumoopconstructors
Choose one answer
Answer and explanation

Correct answer

A. Constructors can have different parameters.

Why

Constructor overloading is the technique of having more than one constructor in a class with different parameter lists. It allows objects to be initialized in different ways.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →