Conversion of pointer-to-pointer between derived and base classes?

If this was allowed, you could write this:

*bb = new Base;

And c would end up pointing to an instance of Base. Bad.

Leave a Comment