Question

Which C++ inheritance access specifier, when used to inherit a base class, causes all public and protected members of the base class to become private members of the derived class?

A public inheritance, which preserves the base class's original access levels unchanged
B protected inheritance, which downgrades public base members to protected in the derived class
C friend inheritance, which grants the derived class unrestricted access to all base members
D virtual inheritance, which ensures only a single shared copy of the base class exists
E private inheritance, which downgrades both public and protected base members to private
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)