brand = $brand;
}

public function getBrand() {
return $this->brand;
}
}

class Car extends Vehicle {
public $model;

public function setModel($model) {
$this->model = $model;
}

public function getModel() {
return $this->model;
}
}

// Create an object of the Car class
$myCar = new Car();
$myCar->setBrand(“Toyota”); // Inherited from Vehicle class
$myCar->setModel(“Corolla”); // Defined in Car class

echo “Brand: ” . $myCar->getBrand(); // Output: Toyota
echo “Model: ” . $myCar->getModel(); // Output: Corolla
?>