Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. class Alpha{
  3. function one(){
  4.     $object1->three();
  5.     return 1;
  6.     }
  7.  
  8. function two(){
  9.     return 2;
  10.     }
  11. }
  12. class Beta{
  13. function three(){
  14.     return 3;
  15.     }
  16. function four(){
  17.     return 4;
  18.     }
  19. }
  20.  
  21. $object0 = new Alpha();
  22. $object1 = new Beta();
  23.  
  24. $object1->one(); ??
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement