Google News
logo
CPP - Quiz(MCQ)
What is the use of dynamic_cast operator?
A)
it converts the virtual base object to derived class
B)
it will convert the operator based on precedence
C)
it converts virtual base class to derived class
D)
it converts the virtual base object to derived objects

Correct Answer :   it converts virtual base class to derived class


Explanation : Because the dynamic_cast operator is used to convert from base class to derived class.

Advertisement