There are two classes Vehicle and Car. The second class extends the first one.
Override toString in both classes to return a string representation of vehicles and cars.
If an object is Vehicle, the overridden method toString must return something like:
Vehicle{licensePlate=ABC123}
If an object is Car, the overridden method toString must return something like:
Car{licensePlate=ABC123,numberOfSeats=4}