Computer Applications

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

Java Classes

49 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

30 Likes


Related Questions