What is a constructor in Java?
A constructor is a special method used to initialize objects. It has the same name as the class and is automatically called when an object is created.
Great job! You've explained constructors clearly.
Can you explain what happens if a constructor is not defined in a class?