Science, asked by adityap6506, 1 year ago

What is the use of dynamic_cast in C++?

Answers

Answered by spidy29
0
dynamic_cast in C++ can be used to perform type safe down casting. dynamic_cast is run time polymorphism. The dynamic_cast operator, which safely converts from a pointer (or reference) to a base type to a pointer (or reference) to a derived type.
Similar questions