Question 3

Last Updated :
Discuss
Comments

What is the purpose of a constructor in PHP classes?

To destroy an object

To initialize an object

To inherit properties

To define access modifiers

Tags:
Share your thoughts in the comments