class Parent{
2) private void method(){
3) System.out.println("Parent.method invoked");
4) }
5) public static void main(
String args[]){
6) Parent p = new Parent();
7) Parent c = new Child();
8) p.method();
9) c.method();
10) }
11) }
12)
13) class Child extends Parent{
14) public int method(){
15) System.out.println("Child.method invoked");
16) return 0;
17) }
18) }
OUtput??