Question OOP-POLY-0060
MediumWhat does dynamic_cast<Derived*>(basePtr) return in C++ if the object is not a Derived?
- A.
It throws for pointers
- B.
A new Derived object
- C.
The same pointer
- D.
nullptr
Sign up free to see the answer and a step-by-step explanation.