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 UDDI and how to register the web service in it?
Please explain what is a delegate?
How can you turn-on and turn-off cas?
What are pdbs?
Explain me what is the difference between a class and an object, and how do these terms relate to each other?
How is .net able to support multiple languages?
What is meant by localization?
How will you do redo and undo in textbox control?
what is machine key error in .NET how can we solve it?
What are the authentication methods in .net?
What is the new three features of COM+ services, which are not there in COM (MTS)
How do we access crystal reports in .net?
What is .net latest version?
What's singleton activation mode in .net?
What is RCW (Run time Callable Wrappers)?