Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php call parent constructor

<?php
class BaseClass {
   function __construct() {
       print "En el constructor BaseClass
";
   }
}

class SubClass extends BaseClass {
   function __construct() {
       parent::__construct();
       print "En el constructor SubClass
";
   }
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #call #parent #constructor
ADD COMMENT
Topic
Name
9+5 =