Question: 1 When is a constructor executed?
- when an object is created from a class using the new keyword
- when an class is defined using the class keyword
- every time an object is referenced
- when an object is created from a class using the create keyword
Answer: The correct answer of the above question is Option A:when an object is created from a class using the new keyword