Tuesday, August 19, 2008

Great Quote on Access-specifiers

I just heard a really great quote and memory aid for access-specifiers in C#/C++.

Your friends can touch your privates. Your children cannot.
Children and friends know your protected stuff, strangers do not.

Not to get on too much of a tear about my animosity towards the collegiate education system... but how is it I went through about six years of software engineering classes and never heard this wonderful tidbit? No, instead professors would have students jump through hoops of fire trying to initially get their heads around certain concepts when a simple, concise, albeit somewhat ribald, distillation would suffice.

0 comments:

Post a Comment