implement project #1
@@ -16,7 +16,6 @@ public class VehicleInspector {
|
||||
public static void inspect(Vehicle v) {
|
||||
|
||||
v.basicInfo();
|
||||
String type = v.getEnergyType();
|
||||
|
||||
if(v instanceof ElectricCar)
|
||||
System.out.println("Check battery system");
|
||||
|
||||
Reference in New Issue
Block a user