Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Wht executescaler method is used?

968


Which class does the remote object has to inherit?

1067


Which constructor is called first in c#?

954


What is anonymous method in c#?

910


What is the difference between hashtable and dictionary?

961


What is the use of console readline () in c#?

875


What does the keyword “virtual” declare for a method or property?

959


What is literal control

1028


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

999


Does c# support a variable number of arguments?

1029


What is the difference between do and while loop?

897


What do constructors do in c#?

968


Is clr a compiler?

875


What is the difference between Singleton design pattern and Factory design pattern?

969


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

836