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

Can we inherit a class with private constructor in c#?

707


Explain the differences between static, void and public in c#?

622


What is out int in c#?

573


What is a base class in C#?

641


Is array reference type in c#?

568






What are the types of comments in c#?

644


what is the Difference between the public and private ?

598


How can I create image pieces/sub image?

571


How can we set the class to be inherited, but prevent the method from being over-ridden?

571


How does one compare strings in c#?

620


What is the use of generics in c#?

550


What is difference between managed and unmanaged code?

568


Why do we still see so much non-oo code written in c# today?

588


Can we inherit class that contains only one private constructor?

605


List down the differences between public, static and void keywords?

545