public function xyz() { echo $this->name . '<br>'; echo 'this is testChild->' . self::abc() . '<br>'; echo 'this is testchid->' . parent::efg(); }