Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 3-level+ deep inheritance tree and classes accessing their grandparent's protected member variables

Yes, I have. Per MSDN, a protected member is accessible within its class and by derived class instances - that's the point. Works fine in the game I work on.

> violating every single invariant possible

Sure, sometimes, but I see that happen without class inheritance just as often.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: