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


Please Help Members By Posting Answers For Below Questions

What is delegates and events?

478


What is difference between ienumerable and ienumerator in c#?

531


What's the difference between abstraction and encapsulation?

471


What is the Signification of the "new " keyword in C#? example

535


Is a games console a computer?

488






What are strings in c#?

499


Explain publishers and subscribers in events.

551


Does c# support a variable number of arguments?

620


Where value types are stored in c#?

517


Describe the overview of clr integration.

501


Distinguish between continue and break statement?

576


What is a thread c#?

509


What is the difference between a private assembly and a shared assembly?

572


What is parameter c#?

537


Can you store different types in an array in c#?

486