Explain in detail about encapsulation with an example?
encapsulation is the one which will bind members and methods into a single entity