Core Java theorytheory 0/50 · 0%
OOP · easy

9. Constructors

Special methods for initialization.

Constructors have the same name as the class and no return type. They run when an object is created.

Check your understanding

  1. 1. Default constructor has how many parameters?

  2. 2. Can a class have multiple constructors?