Skip to content
Sharp

Object-oriented programming · interview question

Which keyword would you use to call another constructor within the same class?

Multiple choiceMediumchapter-2-curatedpremiumoopthis-keyword
Choose one answer
Answer and explanation

Correct answer

C. This()

Why

'this()' is used to call another constructor in the same class. It must be the first statement in the constructor.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →