A

Admin • 833K Points
Coach

Q. What is the difference between protected and private access specifiers in inheritance?

  • (A) Both are inheritable but private is accessible in the derived class.
  • (B) private member is not inheritable and not accessible in derived class.
  • (C) protected member is inheritable and also accessible in derived class.
  • (D) Both are inheritable but protected is not accessible in the derived class.
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.