Guest User

Untitled

a guest
Dec 20th, 2013
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. abstract class AbstractInNature {
  3.     abstract public function methodByRefInit(&$param = null) ;
  4. }
  5.  
  6. class ConcreteInNature extends AbstractInNature {
  7.     public function methodByRefInit(&$param = null) {
  8.         return __METHOD__;
  9.     }
  10. }
  11.  
  12. $test = new ConcreteInNature();
  13. var_dump(
  14.     $test->methodByRefInit());
  15. ?>
RAW Paste Data