$w = new carTyre(); class format { function formatDate() { $this->something = 0; echo 'ss'; } function applyDDS($money) { return $money * 1.2; } } $x = format::applyDDS(100); echo $x; $y = format::formatDate(); exit; abstract class machine { private $isRaining; abstract function move(); function todayIsRaining() { $this->isRaining = true; } } class automobile extends machine { protected $km; function move() {