book_page_126

 avatar
user_7141235750
php
2 years ago
463 B
1
Indexable
Never
<?php 

class User {

	function __construct(){
		print "In User constructor<br>";
	}

}

class Employee extends User {

	function __construct(){
		parent::__construct();
		print "<br>--In Employee constructor<br>";
	}

}

class Manager extends Employee{
	function __construct(){
		parent::__construct();
		print "--In Manager constructor<br>";
	}
}

$user = new User();

$employee = new Employee();

$manager = new Manager();

?>