How encapsulation and abstraction defined/used in C#.NET.
Answer Posted / gitesh sankhe
Encapsulation has two faces; data abstraction and
information hiding. Data abstraction is a type seen from
the outside. Information hiding is a type seen from the
inside.
Abstraction focuses on the outside view of an object (i.e.
the interface)
Encapsulation (information hiding ) prevents clients from
seeing its inside view, where the behavior of the
abstraction is implemented
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Define interface class in c#?
What is application c#?
What is the difference between readkey and readline in c#?
How to Show Message box in Metro Style App?
How can you set image source dynamically from c# application to ”test.png” file?
Why generics are used?
How can we sort the elements of the array in descending order?
Can I define my own exceptions?
Define encapsulation?
What is an ienumerable in c#?
How will you get the different language strings?
4. Describe the process when we send a request URL? And who is responsible for that?
What is difference between dynamic and var in c#?
What are anonymous types in c#?
Can we create extension method for interface?