Subscribe TechModgy to learn about new technologies!

Protected data members can be accessed

A. Only from the base class itself

B. Both form the base class and from its derived classes

C. From the class which is friend of the base class

D. None of the above are correct

Please do not use chat terms. Example: avoid using "grt" instead of "great".