Question

In a language like C++, if a member variable is declared protected, it means:

A It can be accessed from anywhere in the program.
B It can only be accessed from within the class itself.
C It can be accessed from within the class and by derived classes.
D It can only be accessed by friend functions.
E It cannot be accessed at all.
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)