This is a project for learning some basics of the object oriented parts of Scala. Maven is used for dependencies and build. There are unit tests (Scalatest) which you can use to implement this project -> Test Driven Development.
- The following object oriented structure is given. The abstract class
Vehicle
represents everything that can drive. Vehicles have a weight and a maximum speed. They can drive and make a sound.Car
is a concrete implementation ofVehicle
. TheCarPark
has a defined capacity, allows cars to drive in and out and contains therefore an aggregation ontoVehicle
. - Execute the tests in /src/test/scala/de.scala.basics/
- Make the tests green by implementing the missing code.
- Congratulations! 👍
If you need a hint or just want to view the solution, you can take a look into the history of this repository (checkout commit 04dfe0ff).