Computer Applications

Can a private member be accessed by

(a) a member of the same class?

(b) a member of other class?

(c) a function which is not a member function?

Encapsulation & Inheritance in Java

16 Likes

Answer

(a) Yes

(b) No

(c) No

Answered By

10 Likes


Related Questions