Beginner
PHP
Q16 / 100
What is the purpose of the __construct() method?
Correct! Well done.
Incorrect.
The correct answer is B) It is the constructor, automatically called when an object is created
B
Correct Answer
It is the constructor, automatically called when an object is created
Explanation
__construct() initializes object properties when new MyClass() is called.
Progress
16/100