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 / megha

Details are what a contains is not visible to other
classes.Instead only specific information is made visible.
ATM center is one real world example.
Encapsulation is achieved with the help of properties.
ex:-
int _empno;
public int EmpNo
{
get
{
return _empno;
}
set
{
_empno=value;
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by globalization and localization?

1005


What is file extension of Webservices in .Net?

1044


What is the concept of inheritance and how it works in .net?

973


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

1047


What is meant by managed and unmanaged code?

1099


How many types of design patterns available in .NET?

997


Explain what rare the types of jit and what is econo-jit?

993


Do you know what is .net standard?

1048


Differentiate between managed and unmanaged code?

1099


Is .net core free?

1044


Explain why do we use msmq?

956


Explain memory-mapped files.

1049


What is managed code execution?

1069


What is the difference between server.transfer and response.redirect? Why?

1016


What is assembly in .net?

1018