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
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?
What is the single responsibility principle?
Explain memory-mapped files.
What is the difference between task and thread in .net?
How is a managed code executed?
why you wouldn't want to write into it even if you could
Why did they call it .net?
What is Full trust permission set in .Net
Explain boxing and unboxing in .net.
What is view state in .net?
Tell me about secure socket layer? How to make use of the technology?
What is class library in .net
Different between .net & j2ee ?
What are the collections you've used?
Explain what is the difference between odbc and ado?