Problems - Inheritance (till super keyword)
Level 1:
Basic single level inheritance
1)
2)
3)
Multilevel inheritance
1)
Basic method overriding
1)
2)
3)
Level 2:
1) Resolve the compilation error :

2) Whats the output ?
Output :
3) Whats the output ?
4) Will it compile ?
5) Will it compile ?
6) Whats the output ?
7) Will it compile ?
Last updated
Was this helpful?