So if Car class has just make and model in its constructor
Public Class Car {
public __construct($make, $model){
$this->make = $make;
$this->model = $model;
}
}
And then Fleet Car class has age, milage for example
Public Class FleetCar extends Car {
public __construct($age, $mileage){
parent::__construct();
$this->make = $age;
$this->model = $milage;
}
}
How when I create a fleet car can I pass in Car variables?
$myCar = FleetCar(15, 1234132);
I need to pass in make and model too don't I?