Advertisement
Guest User

Untitled

a guest
Dec 20th, 2013
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement