How encapsulation and abstraction defined/used in C#.NET.

Answer Posted / siva prasad

encapculation: binding the data members and member functions
together is called
encapculation. encapculation is done through class.
abstraction: hiding the implementaion details form usage or
from view is
called abstraction.
ex:
int x;
we don't know how int will internally work. but we know int
will work.
that is abstraction.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain About namespaces

574


What is cli in c#?

498


What is the meaning of MSIL?

656


What is native image generator (ngen.exe)?

648


Where is c# compiler located?

490






What is the use of ispostback in c#?

470


how to print invert pyramid in c#

1307


How does insertion sort work?

507


Explain about ODP.net

801


What are interfaces in c#?

512


Why do we use void in c#?

472


Explain the concepts of cts and cls(common language specification).

504


How big is an int in c#?

507


How many types of constructors are available in c#?

535


Is c# lazy thread safe?

485