<?php class Father { function hello() { echo '<br> Hello I\'m your father'; } } class Son extends Father { function hello() { parent::hello(); echo '<br> Hi I\'m maulik'; } } $maulik = new Son(); $maulik->hello();