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...

Can u explain me What is encapsulation?

Answer Posted / manikanta.srinu

Wraping(Binding) of data in a single unit.
Encapsulation is combines one or more information into a
component.
* You hide the data for security such as making the
variables as private, and expose the property to access the
private data which would be public.
So, when you access the property you can validate the
data and set it.
Eg 1: Capsule is mixed with one or more medicine and packed
into the tube. so its related and acting in two moducles.
EX:public class Demo
{
private int _mark;

public int Mark
{
get { return _mark; }
set { if (_mark > 0) _mark = value; else _mark = 0; }
}
}

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does managed mean in the .net context?

1043


explain the states of a window service application?

1053


I'm having some trouble with cas. How can I troubleshoot the problem?

1079


what is prototype design pattern in .net

1076


What is assemblies in .net?

1170


What's singleton activation mode in .net?

1124


How to create a key pair in .net?

1161


Explain the purpose of Remoting in .NET?

1183


What is the difference between asp.net and asp?

1264


What is an exe and a dll?

1255


Explain what are possible implementations of distributed applications in .net?

1051


How do you instantiate a complex number?

1136


One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

1026


What is an assembly? What are the different types of assemblies?

1268


Is there any thread in our .net programs?

1144