Kizspy Question: 28
(Choose 1 answer)
What is the output following the code snippet?
class DemoClass {
static void m()
}
System.out.println("A");
class DemoClass Child extends DemoClass {
static void m() {
}
System.out.println("B");
public class Main {
public static void main(String[] args) {
DemoClass obj = new DemoClassChild();
obj.m();
}
A. A
B. B
C. AB
D. BA