C# Encapsulation and Abstraction

In this chapter you will learn:
  • What is encapsulation in C#?
  • What is abstraction?
  • What are various types of access specifiers?
  • How to encapsulate your program?
  • What is get set modifiers and how to use it in program?

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.

 
List of Contents

Summary

In this session you will learn about encapsulation and abstraction in C#. You will also learn about various types of access specifiers including get set modifiers. In next chapter you will learn the basic concept of encapsulation and abstraction.

More Articles

 

Share your thought



PLEASE DISABLE ADBLOCKER AND SUPPORT US!

Please support us by enabling ads on this page. Refresh

YOU DON'T LIKE ADS, WE ALSO DON'T LIKE ADS!
 
But we have to show ads on our site to keep it free and updated. We have to pay huge server costs, domain costs, CDN Costs, Developer Costs, Electricity and Internet Bill. Your little contribution will encourage us to regularly update this site.