Which specifier allows a programmer to make the private members which can be inherited?

Nam Phong

New member
Which specifier allows a programmer to make the private members which can be inherited?
A. Private
B. Default
C. Protected
D. Protected and default
 
Answer: c
Explanation: 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.
 

Tìm kiếm

Back
Top