QuestionQ133
Working with InheritanceGiven:

and the following code fragment:
S2 sobj = new S2();
sobj.display(10, 100);
What is the result?
- A Child 10 Child 100 Parent 100
- B Parent 10 Child 10 Parent 1000
- C Child 10 Parent 100 Parent 100
- D A compile time error occurs.
Community Discussion