Which specifier allows to secure the public members of base class in inherited classes?

Ngọc Trâm

New member
Which specifier allows to secure the public members of base class in inherited classes?
A. Private
B. Protected
C. Public
D. Private and Protected
 
Answer: d
Explanation: Both the private and protected specifiers can make the public members of the base class more secure. This is useful if we stop using the parent class members and use the classes which inherited the parent class, so as to secure data better.
 

Tìm kiếm

Back
Top