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


Please Help Members By Posting Answers For Below Questions

Define interface class in c#?

513


What is application c#?

491


What is the difference between readkey and readline in c#?

452


How to Show Message box in Metro Style App?

564


How can you set image source dynamically from c# application to ”test.png” file?

638






Why generics are used?

492


How can we sort the elements of the array in descending order?

528


Can I define my own exceptions?

495


Define encapsulation?

650


What is an ienumerable in c#?

541


How will you get the different language strings?

505


4. Describe the process when we send a request URL? And who is responsible for that?

1484


What is difference between dynamic and var in c#?

479


What are anonymous types in c#?

473


Can we create extension method for interface?

492