Get premium membership and access questions with answers, video lessons as well as revision papers.

Explain how dynamic-cast can sometimes be an alternative to typeid in C++ programming.

      

Explain how dynamic-cast can sometimes be an alternative to typeid in C++ programming.

  

Answers


Davis
The dynamic cast operator can replace typeid in situations in which typeid is being used to determine the validity of a polymorphic cast.
Githiari answered the question on February 12, 2018 at 12:29


Next: In addition to the standard cast, C++ defines four casting operators.What are they and what are they for?
Previous: What type of object is obtained by the typeid operator in C++ programming?

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions