Answer Posted / Jyoti Shukla
In object-oriented programming, when you create an instance of a child class that inherits from a parent class, the parent class's constructor is called automatically. If you want to call the parent class's constructor explicitly, you can do so using the 'parent::__construct()' syntax in the child class's constructor.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers