Which among the following is true?
A. Upcasting is possible only for single level inheritance
B. Upcasting is possible only for multilevel inheritance
C. Upcasting is possible only for multiple inheritance
D. Upcasting is possible for any type of inheritance
Answer: d
Explanation: The type of inheritance doesn’t matter with the upcasting concept. Upcasting applies to all types of inheritance. Any derived class object can be upcasted to any of its base class object.