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

What are the advantages of clr procedure over t-sql procedure?

783


What are generic types?

695


Why do we need to override in c#?

719


What is deadlock in c#?

667


What is continue in c#?

719


What is throw in c#?

684


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

702


What is null propagation c#?

687


Why would you use a class property in c#?

687


What is namespace in oops?

662


What do u meant by "SBI" of an object?

743


Explain the role of Garbage collector and its generations?

714


What is callback in c#?

655


What is the use of getcommandlineargs() method in c#.net?

727


Can a abstract class have a constructor?

645