1.

If multiple inheritance is implemented, which upcasting will be correct?(a) Upcast to first base class listed in inheritance(b) Upcast to send base class listed in inheritance(c) Upcast to any base class(d) Upcast is not possibleThe question was asked in final exam.This question is from Upcasting in chapter Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming

Answer»

Right answer is (C) Upcast to any BASE CLASS

The BEST I can explain: The upcasting of derived class object is possible to any base class. This is because the base class object can represent any of its derived classes USING upcasting.



Discussion

No Comment Found

Related InterviewSolutions