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 the use of common language runtime?
What's typical about a windows process in regards to memory allocation in .net?
The project which you have made, which methodology did you use?
How do you instantiate a complex number?
Please explain what is a delegate?
Will my .net app run on 64-bit windows?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
Explain what is reflection in microsoft .net context?
Is there built-in support for logging?
explain the states of a window service application?
Is there any attempt system for microsoft technology papers?
what will do to avoid prior case?
How to spawn a thread?
What are Attributes in .NET?
Why do we use the “using” statement?