Beginner
Object-Oriented Programming Concepts
Q7 / 100
What is a "constructor"?
Correct! Well done.
Incorrect.
The correct answer is B) A special method automatically called when an object is created, used to initialize its state
B
Correct Answer
A special method automatically called when an object is created, used to initialize its state
Explanation
Constructors set up initial values for an object's attributes at the moment the object is instantiated.
Progress
7/100