Esempio n. 1
0
 public function go()
 {
     $ship = new Transport();
     $ship->type_of_transport("water");
     $ship->engine_type("steam-turbine");
     $ship->move();
 }
Esempio n. 2
0
 public function go()
 {
     $bike = new Transport();
     $bike->type_of_transport("ground");
     $bike->engine_type("electric motor");
     $bike->move();
 }
Esempio n. 3
0
 public function go()
 {
     $train = new Transport();
     $train->type_of_transport("ground");
     $train->engine_type("diesel engine");
     $train->move();
 }
Esempio n. 4
0
 public function go()
 {
     $car = new Transport();
     $car->type_of_transport("ground");
     $car->engine_type("combustion engine");
     $car->move();
 }
Esempio n. 5
0
 public function go()
 {
     $plane = new Transport();
     $plane->type_of_transport("air");
     $plane->engine_type("jet engine");
     $plane->move();
 }