What will be the output of the following program?
public class Test {
public static void main(String[] args) {
new Z().method1();
new Z().method2();
}
}
abstract class X {
abstract void method1();
abstract void method2();
}
abstract class Y extends X {
void method1() {
System.out.println("Method1 implemented here.");
}
}
class Z extends Y {
void method2() {
System.out.println("Method2 implemented here.");
}
}