Answers for "construtor php"

PHP
0

construtor php

class BaseClass {
    function __construct() {
        print "In BaseClass constructor\n";
    }
}

class SubClass extends BaseClass {
    function __construct() {
        parent::__construct();
        print "In SubClass constructor\n";
    }
}
Posted by: Guest on September-03-2020

Browse Popular Code Answers by Language