Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. interface method
  2. {
  3.   public function getDescription();
  4.  
  5. }
  6.  
  7. abstract class Product
  8. {
  9.   public $price;
  10.   public $type;
  11. }
  12.  
  13.  
  14.  
  15.  
  16. class Car extends Product implements method
  17. {
  18.   public $wheel;
  19.   public $carColor;
  20.   public function getDescription()
  21.   {
  22.     parent::getDescription();
  23.     echo "Стандартная сборка этой марки {$this->wheel} колеса и {$this->carColor} цвет машины.<br>";
  24.   }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement