Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q17 answer is D. Q40 ans is A. Should subclass object of type superclass call superclass or subclass method. In 17, j calls subclass method
Q17 answer is D. Q40 ans is A. Should subclass object of type superclass call superclass or subclass method. In 17, j calls subclass method while in 40 obj1 calls superclass method. Both j and obj1 have the condition: object instantiated in subclass of type superclass. There is a discrepancies between these two questions. Please clearly explain the correct reasoning and my mistake.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started