Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface method
- {
- public function getDescription();
- }
- abstract class Product
- {
- public $price;
- public $type;
- }
- class Car extends Product implements method
- {
- public $wheel;
- public $carColor;
- public function getDescription()
- {
- parent::getDescription();
- echo "Стандартная сборка этой марки {$this->wheel} колеса и {$this->carColor} цвет машины.<br>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement