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 does cil do?
What is the difference between override and overload in a method?
Can "this" be used within a static method?
What are the two main parts of the .net framework?
Describe the use of following com+ services jit activation, queued components, object pooling.?
What is delegation in .net?
Explain what is the difference between constants and read-only variables?
What is COM Interoperability in .NET
Explain what are the deferred execution and the immediate execution in linq?
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 difference between .net and .net core?
Whate are resource files?
Explain the difference between .net 2000 and .net 2005(features)? Which one is better?
What is managed code in .NET?
Please explain what is the difference between odbc and ado?