What is the use of dynamic_cast in C++?
Answers
Answered by
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
Environmental Sciences,
7 months ago
History,
7 months ago
Social Sciences,
7 months ago
English,
1 year ago
Biology,
1 year ago