Q. What is the output if a child calls super().method()?
Solution:
super().method() calls the parent’s method, returning ‘Parent method’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
super().method() calls the parent’s method, returning ‘Parent method’.
Strengthen Your Practice with our comprehensive question bank.