I haven\'t done C++ in a while and can\'t figure out why following doesn\'t work:
class A { protected: int num; }; class B : public A { }; main () { B
It is accessible within the scope of B's functions, but you are attempting to access it in main.