How are private members of a class different from public members?
Views 5
Answer:
private members of a class can only be accessed by other member methods of the same class whereas public members of a class can be accessed by methods of other classes as well.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.