Java - Inheritance
Examine the following code snippet and identify the error:
class Base {
void display() {
System.out.println("Base display");
}
}
class Derived extends Base {
void display() {
super.display();
System.out.println("Derived display");
}
void print() {
super.print();
}
}