Guest User

Untitled

a guest
Nov 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. class Foo
  4. {
  5. static function hey()
  6. {
  7. self::say();
  8. }
  9.  
  10. static function say()
  11. {
  12. echo 'foo';
  13. }
  14. }
  15.  
  16. class Bar extends Foo
  17. {
  18. static function say()
  19. {
  20. echo 'bar';
  21. }
  22. }
  23.  
  24. Bar::hey(); // foo
Add Comment
Please, Sign In to add comment