Can u explain me What is encapsulation?
Answer Posted / megha
Details of what a class 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
Explain the difference between constants and read-only variables?
Explain the process of compilation in .NET?
When a Static Constructor called in .NET?
What is il in vb.net?
What is an anonymous method?
Explain the difference between the stack and the heap?
Explain attributes in dot net?
How do I spawn a thread?
Tell me what is serialization?
What does mean by .net framework?
SAP Business One(this is intigrated tool of .net)
Explain what are the deferred execution and the immediate execution in linq?
Tell about your technical profile ?
Explain about .net assemblies?
What is connected and diconnected database ?