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 the difference between asp.net and asp?
Why do we use msmq?
Is .net core the future?
Explain me why do we use msmq?
What is Complex Class in .NET?
Tell us why do we use the “using” statement?
Explain what is the difference between odbc and ado?
Explain the difference between asp.net and asp?
How do you view the methods and members of a dll?
Explain what does managed mean in the .net context?
Write the .net syntax for 'while loop'?
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?
Difference between class and interface in .net?
Can you explain what do you understand about web service?
How to instantiate a delegate?