KnowledgeBoat Logo

Computer Applications

How are private members of a class different from public members?

Java Classes

42 Likes

Answer

private members of a class are accessible only within the class in which they are declared. public members of the class are accessible both within and outside their class.

Answered By

27 Likes


Related Questions