1
2class BaseClass {
3 function __construct() {
4 print "In BaseClass constructor\n";
5 }
6}
7
8class SubClass extends BaseClass {
9 function __construct() {
10 parent::__construct();
11 print "In SubClass constructor\n";
12 }
13}
14
15