SHARE
TWEET

Untitled

a guest Jul 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class Car {
  4.  
  5.     public $wheels = 4;
  6.  
  7.     function greeting(){
  8.         return "Hello there";
  9.     }
  10. }
  11.  
  12. $bmw = new Car();
  13.  
  14. class Trucks extends Car{
  15.  
  16. }
  17.  
  18. $volvo = new Trucks();
  19. echo $volvo->wheels;
  20.  
  21. ?>
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top