Today i heard from my friend, that encapsulation is not only achieving information hiding but also abstraction. How does it achieve?
public class employee {
Abstraction is all about a concept/model which cannot be realized / instantiated as such. Abstraction is all about restriction on an object's method/members behaviour to other classes.