Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Data Abstraction Example in C#:-

To hide the internal functionality of the program is managed by data abstraction, It is used to provide security and accessibility in an application.

How we can implement Data Abstraction:-

1)   Using Access Specifier:- 

1.1)  Private:-   We can not call outside of the class

1.2) Protected:-  We can access from base class to derived class in the same project and cross-project

1.3)  Internal:-   We can access from all classes in the same project

1.4) Public:-   We can access public data member and member function outside of the project.

1.5) Protected Internal:-  Combine Features of Protected and Internal both.

2)   Using Abstract class:-

3)   Using Interface:- 

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post