Hi all,
while going through basics of
java i come around the below points for encapsulation. Can any one explain the points with example
1)An encapsulated, public class promotes re-use.
2)An encapsulated class allows a programmer to implementation without affecting outside code.
Thanks in advance.