SHARE
TWEET

Untitled

a guest Dec 20th, 2013 104 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top