Which members can never be accessed in derived class from the base class?

Ngô Quốc Huy

New member
Which members can never be accessed in derived class from the base class?
A. Private
B. Protected
C. Public
D. All except private
 
Answer: d
Explanation: There is no restriction for a derived class to access the members of the base class until and unless the members are private. Private member are declared so that those members are not accessible outside the class.
 

Tìm kiếm

Back
Top