Skip to main content

C# & Encapsulation

Encapsulation means to create a boundary around an object to separate its external (public) behavior from its internal (private) implementation.

Consumers of an object should only concern themselves with what an object does, not how it does it. 

C# supports encapsulation via:

– Unified Type System
– Classes and Interfaces
– Properties, Methods and Events

Comments