Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- abstract class AbstractInNature {
- abstract public function methodByRefInit(&$param = null) ;
- }
- class ConcreteInNature extends AbstractInNature {
- public function methodByRefInit(&$param = null) {
- return __METHOD__;
- }
- }
- $test = new ConcreteInNature();
- var_dump(
- $test->methodByRefInit());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement