I'm reading the java introduction book and i've come across on the first chapter about encapsulation. what is encapsulation? and why is a class a basic unit of encapsulation? and how are objects instances of class? what does "instance of" mean?
just give a simple explanation with examples please. thanks. :)