- 4
Guess the output of the code ?
class Test{ public void method(int x){ System.out.println("From Test : "+x); } } class Result extends Test{ void method(int x){ System.out.println("From Result : "+x); } public static void main(String s[]){ Test test = new Result(); test.method(10); } }
5 Answers
+ 3
đ€đ€
+ 2
I think from result: 10
+ 2
Try on Code playground
Then if you have any doubt ask here.
0
Vadivelan thanks for your suggestion.
I care your greatest suggestion.
- 2
Nooopp