SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class classA {
  2.     private function Something() {
  3.         echo 'here';
  4.     }  
  5.     public function saySomething() {
  6.         $this->Something();
  7.     }  
  8. }
  9.  
  10. class classB extends classA {
  11.     public function Something() {
  12.         echo 'or here';
  13.     }  
  14. }
  15.  
  16. $object = new classB();
  17. $object->saySomething();
RAW Paste Data
Top