Question OOP-POLY-0075
HardWhat does dynamic_cast do that static_cast doesn't, for pointers to polymorphic classes?
- A.
It changes the object
- B.
It checks the real type at run time and returns nullptr if the cast is invalid
- C.
Sign up free to see the answer and a step-by-step explanation.