Q:

If class C inherits class B and class B inherits class A ________________

0

If class C inherits class B and class B inherits class A ________________


  1. Class C object can be upcasted to object of class B only
  2. Class C object can be upcasted to object of class A only
  3. Class C object can be upcasted to object of either class A or B
  4. Class C object can’t be upcasted

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Class C object can be upcasted to object of either class A or B

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OVERLOADING MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Upcasting is _____________________ without an expl... >>
<< If multiple inheritance is implemented, which upca...