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
How to create multiple inheritance in c#, with example?
What method do you use to explicitly kill a users session? How?
What is misl?
Why you want to leave your previous company.
Types of evidence in .net with context to CAS
What is multiThreading in .NET?
Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column
What is the need of OLE-automation?
What are the security policy levels in .Net
Which namespace is require to used XML in .NET?
Explain what does managed mean in the .net context?
What is difference between system.string and system.stringbuilder classes?
How will you register com+ services?
What does .net stand for?
Is Driver Script any how related to AOM?