KnowledgeBoat Logo
|

Computer Applications

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

Java Classes

50 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

31 Likes


Related Questions