Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 407 Bytes

File metadata and controls

7 lines (6 loc) · 407 Bytes

Home Task Week 2

  1. Create a vehicle that encapsulates engine, wheels and gas-tank. All internal items should interact with each other.
  2. Internal mechanism should be hidden from client. All he needs is accelerate(), brake(), turn() these method should be part of Driveable interface.
  3. Create a Boat that extends Vehicle.
  4. Create a Car that extends Vehicle.
  5. Create a Solar Car that extends Car.