Can you please answer the following questions for me.
a) I read a book which said that set of methods of a class defines its interface what those this mean?
b)If you don't declare your method as public or private that those it take it to be i.e what is the default is it public or package or private?
C)Why do sometimes people declare instance variables as private?
a) I read a book which said that set of methods of a class defines its interface what those this mean?
b)If you don't declare your method as public or private that those it take it to be i.e what is the default is it public or package or private?
C)Why do sometimes people declare instance variables as private?
Comment