1. What is the difference between the public and private parts of a class? 2. a. Give an example of a situation in which an instance variable should be private. b. Give an example of a situation in...



1.
What is the difference between the public and private parts of a class?



2.
a. Give an example of a situation in which an instance variable should be private.


b. Give an example of a situation in which an instance variable should be public.


c. Give an example of a situation in which a method should be private.


d. Give an example of a situation in which a method should be public.








Nov 28, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here