?

Log in

No account? Create an account
Messenger Icon

Has anyone come across a good diagram that relates the effects of public, protected, and private in C++ inheritance? I've got a handle on some of it, but I'm too fuzzy to be sure my classes are not going to err at runtime. Or will the compiler catch inconsistencies?

Comments

Theoretically, I believe a compiler should be able to catch such inconsistencies. However, the horrible design of C++ may prevent that (such as a template application on a subclass being applied to the base class, etc, etc, etc).
That is exactly what I was worried about. I suppose I'll just sorta cross my fingers, then.