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
How to produce an assembly?
What is loosely coupled solution in.net?
How do you trigger the paint event in system.drawing?
Explain about Behavioral design pattern?
What is close method? How its different from finalize and dispose?
What is garbage collection in .net? Explain the garbage collection process?
Explain what is a manifest in .net?
Can any object be stored in a viewstate in .net?
What are .net functions?
What are the deferred execution and the immediate execution in linq?
Explain cas (code access security)?
How server form post-back works?
What are the different.net tools which you used in projects?
Is it true that objects don't always get destroyed immediately when the last reference goes away?
What's wrong with a line like this? Datetime.parse(mystring);