Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. abstract class foo {
  3. function fooing() {
  4. echo "Hello, I'm foo :)";
  5. }
  6. }
  7.  
  8. class foo2 extends foo {
  9. function foo2() {
  10. $this->fooing();
  11. }
  12. }
  13.  
  14. class foo3 extends foo2 {
  15. function foo3() {
  16. $this->foo2();
  17. }
  18. }
  19.  
  20. $x = new foo3;
  21. $x->foo3();
  22. ?>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement