Java - Abstraction
Identify the error in the following code snippet:
abstract class Shape {
abstract void draw();
}
class Circle extends Shape {
void draw() {
System.out.println("Drawing circle");
}
}
class Test {
public static void main(String[] args) {
Shape s = new Shape();
s.draw();
}
}