Which among the following is false?

Minh Tung

New member
Which among the following is false?
A. Private members can be accessed using friend functions
B. Member functions can be made private
C. Default members can’t be inherited
D. Public members are accessible from other classes also
 
Answer: c
Explanation: The default members can be inherited. Provided that they are in same package. It works in a little different way from private access specifier.
 

Tìm kiếm

Back
Top