What is Encapsulation


Encapsulation is a fundamental concept in computer science and programming. At its core, encapsulation is simply “information hiding”, but that doesn’t convey the reasoning behind the practice. By hiding information about the inner workings of a software construct, you force collaborators to work only with the construct’s exposed interface. How work is done within the construct is a “black box”, and as a result, the inner workings are free to change without disrupting collaborators, provided the external interface (and associated behavior) is not changed.
Microsoft


Leave a Reply

Your email address will not be published. Required fields are marked *