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 about .net?

1019


What is Finalizer in .NET define Dispose and Finalize ?

1019


What are .net functions?

922


Please explain what are an inheritance, polymorphism, and encapsulation?

1049


What is the use of immutability?

1047


hai, about trading domain and need simple project on trading system. please help me...

2037


What are the new 2.0 features useful for?

1142


What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?

906


Explain about .NET services?

1017


Is .net core stable?

871


What is the procedure to add assemly to gac to make it shared one?

937


What is singleton activation mode in .net?

1110


Show different types of collection in .NET?

982


Explain soap and xml?

980


What does .net stand for?

976