If class C inherits class B and class B inherits class A ________________
(a) Class C object can be upcasted to object of class B only
(b) Class C object can be upcasted to object of class A only
(c) Class C object can be upcasted to object of either class A or B
(d) Class C object can’t be upcasted
This question was addressed to me in a national level competition.
My doubt stems from Upcasting in division Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming