1.

Which specifier allows a programmer to make the private members which can be inherited?(a) Private(b) Default(c) Protected(d) Protected and defaultI got this question during an interview.My query is from Access Specifiers in chapter Access Specifiers of Object Oriented Programming

Answer»

Right choice is (C) PROTECTED

The BEST I can explain: Protected access is USED to make the members private. But those members can be INHERITED. This gives both security and code reuse capability to a program.



Discussion

No Comment Found

Related InterviewSolutions