Encapsulation and abstraction is the advanced mechanism in C# that
lets your program to hide unwanted code within a capsule and shows only
essential features of an object. Encapsulation is used to hide its
members from outside class or interface, whereas abstraction is used to
show only essential features.
In C# programming, Encapsulation uses five types of modifier to encapsulate data. These modifiers are public, private, internal, protected and protected internal. These all includes different types of characteristics and makes different types of boundary of code.
In C# programming, Encapsulation uses five types of modifier to encapsulate data. These modifiers are public, private, internal, protected and protected internal. These all includes different types of characteristics and makes different types of boundary of code.
List of Contents
Encapsulation and Abstraction
- Chapter 1: Understanding concepts
- Chapter 2: Access Specifiers
- Chapter 3: Public
- Chapter 4: Private
- Chapter 5: Protected
- Chapter 6: Internal
- Chapter 7: Protected Internal
- Chapter 8: GET... SET Method
- Chapter 9: Example
Comments
Post a Comment