How encapsulation and abstraction defined/used in C#.NET.
Answer Posted / animesh
Encapsulation means hiding the inner details from the user
For eg. We know that to open a lock we put key inside it
but what key will do inside the lock is hiddden. We use
inheritance for encapsulation similarly we use Abstract
classes to define abstraction in C#.
Is This Answer Correct ? | 17 Yes | 16 No |
Post New Answer View All Answers
What is escape sequence in c#?
What is the use of regex in c#?
What is namespace c#?
what is the difference between .dll and .exe
Is it possible to have different access modifiers on the get/set methods of a property?
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?
What is array class in c#?
What namespace is list in c#?
What does executescalar return in c#?
What is hash c#?
What is the difference between method and function in c#?
How to move to a state-related codebase?
What is boxing and unboxing in c#?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
Why do we need encapsulation in c#?