I pass 2 pointers of (class A) to it's derived class (class B) via parameter.
One of the pointers needs to be of class B so that I can call methods that were declared in B.
How would I do that?
Doesn't a static cast only let you do it the opposite way? (B to be dynamically casted to type A). I've been told not to do c-style casts. And reinterpret casts can be dangerous?
The only other one that I can think of is a static cast. Is that what I would need here?
Thanks