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
What is meant by globalization and localization?
What is file extension of Webservices in .Net?
What is the concept of inheritance and how it works in .net?
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?
What is meant by managed and unmanaged code?
How many types of design patterns available in .NET?
Explain what rare the types of jit and what is econo-jit?
Do you know what is .net standard?
Differentiate between managed and unmanaged code?
Is .net core free?
Explain why do we use msmq?
Explain memory-mapped files.
What is managed code execution?
What is the difference between server.transfer and response.redirect? Why?
What is assembly in .net?