Java - Abstraction
Identify the error in the following code snippet:
abstract class Vehicle {
abstract void move();
}
class Car extends Vehicle {
void start() {
System.out.println("Car started");
}
}Identify the error in the following code snippet:
abstract class Vehicle {
abstract void move();
}
class Car extends Vehicle {
void start() {
System.out.println("Car started");
}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions