1.

What should be used for safe downcast?(a) Static cast(b) Dynamic cast(c) Manual cast(d) Implicit castThe question was asked in an online quiz.This key question is from Downcasting in division Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming

Answer»

Correct option is (b) Dynamic cast

The best I can explain: The dynamic cast can be done USING the operator dynamic_cast. This converts one TYPE to another type in a SAFE way.



Discussion

No Comment Found

Related InterviewSolutions