| 1 | package Question8_4; |
| 2 | |
| 3 | public class Car extends Vehicle { |
| 4 | public Car() { |
| 5 | spotsNeeded = 1; |
| 6 | size = VehicleSize.Compact; |
| 7 | } |
| 8 | |
| 9 | public boolean canFitInSpot(ParkingSpot spot) { |
| 10 | return spot.getSize() == VehicleSize.Large || spot.getSize() == VehicleSize.Compact; |
| 11 | } |
| 12 | |
| 13 | public void print() { |
| 14 | System.out.print("C"); |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected