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