Web Technology II20815 marksConstructors and initialization
Write a PHP program to demonstrate use of constructor.
Write a PHP program to demonstrate use of constructor. [5]
A constructor is a special method in a class that is automatically called when an object is created. In PHP, the constructor method is defined using construct(). --- --- --- Feature Description ------ construct() Special method called automatically on object creation