Encapsulation is the process of wrapping up data and members of a class. It is an approach to hidding the irrelevant
information and showing only the relevant information of a specific object to a user.
Encapsulation restricts users from sharing and manipulating data , thereby minimizing the chances of data curruption and unauthorized
access of data.
Points to Remember
What is Extension Method in C# ? Describe it in details.
Extension Method is a method that helps us to extend a class without creating a new derived class or without modifying
the original class. Extension method works as a Static method but it is invoked with an instance of the extended
class.
The Extension Method can be any Static Method which uses this keyword before its first parameter.
Only a class that has Static members and implements the this Keyword in the first parameter of a static method can use
the extension methods.
Difference Between Static Method and Extension Method
About the Author
Sudheer Singh Chouhan is a Software Engineer having Expertise in Development Design and Architecting the
applications , Project Management , Designing Large Scale Databases in SQL Server since last 17 Years.
Skill Sets :- Microsoft .NET technologies like ASP.Net Core, Web API, LINQ, Web Forms, WinForms, SQL Server,
EntityFramework, Design Patterns, Solid Principles, Microservices, AWS Cloud.