What is encapsulation?

March 15, 2011 | Filed Under C plus plus | Leave a Comment

Containing and hiding Information about an object, such as internal data structures and code.
Encapsulation isolates the internal complexity of an object’s operation from the rest of the
application. For example, a client component asking for net revenue from a business need
not know the data’s origin

Comments

Leave a Reply





© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker