PHP Inheritance Question

anim

New Member
If I have the following class:\[code\]class foo { function __construct() { // Some code }}\[/code\]And then use inheritance to create:\[code\]class bar extends foo { // Some code}\[/code\]When I instantiate class 'bar', will it automatically execute the __construct method from 'foo' or do I need to do something else to get that method to execute?
 
Back
Top