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
What is assemblies in .net?
What are code contracts?
Explain code access security.
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
What is COM Interoperability in .NET
What is stored procedure ? how we use it in .NET ?
What are an object and a class?
When we use windows api in .net is it managed or unmanaged code?
What is singleton activation mode in .net?
Explain the difference between constants and read-only variables?
What's typical about a windows process in regards to memory allocation in .net?
Explain the difference between garbage collections in .net 4.0 and earlier versions?
Explain me what is encapsulation?
How you apply a theme in whole application in .Net?
How do we access crystal reports in .net?