public function go() { $ship = new Transport(); $ship->type_of_transport("water"); $ship->engine_type("steam-turbine"); $ship->move(); }
public function go() { $bike = new Transport(); $bike->type_of_transport("ground"); $bike->engine_type("electric motor"); $bike->move(); }
public function go() { $train = new Transport(); $train->type_of_transport("ground"); $train->engine_type("diesel engine"); $train->move(); }
public function go() { $car = new Transport(); $car->type_of_transport("ground"); $car->engine_type("combustion engine"); $car->move(); }
public function go() { $plane = new Transport(); $plane->type_of_transport("air"); $plane->engine_type("jet engine"); $plane->move(); }