Hi all ranchers
I am developing for an year and half on
Java.
Previously i was just developing but bow a days i have a responisbility to design also.
I have a question in my mind. First of all why we use private although we can use public.i.e let suppose we have two classes class A and Class B
if i want to share some members between A and B i just make them public or protected else members are private. So, if both the classes are in my use then whats problem if i just make them public i mean all members to be public. Is their any memory linkage between them or ???