Question discussion

In C++, which access specifier allows class members to be accessed within the same class and by its derived classes, but not from outside c…

361Medium DSSSB TGT Computer Science 0 replies
In C++, which access specifier allows class members to be accessed within the same class and by its derived classes, but not from outside code?
  • Apublic
  • Bprivate
  • Cprotected
  • Dfriend
Correct answer: C

Discussion 0

Nobody has replied yet. Start the discussion!