Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class abc{
- function _construct()
- {
- print "I am in abc<br />";
- }
- }
- class def extends abc{
- function _construct()
- {
- parent::_construct();
- print "I am in def<br />";
- }
- }
- $obj = new abc();
- $obj= new def();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement