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
What is clr in .net?
Different levels of priority provided by .net.
Explain the top .net class that everything is derived from?
What is garbage collection in .net? Explain the garbage collection process?
Explain assemblies in .net?
Can I write il programs directly?
Explain what is the difference between a class and an object?
How to create a key pair in .net?
Explain the difference between static page and dynamic page?
What's singlecall activation mode used for in .net?
What is implement a generic action in webapi?
Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?
What method do you use to explicitly kill a users session? How?
What are asp.net authentication providers and iis security?
How can I find out what the garbage collector is doing?