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 .net3.0 and .net3.5?
What's the .net collection class that allows an element to be accessed using a unique key?
Is .net core managed code?
What is different between webusercontrol and in webcustomcontrol?
Explain the difference between managed and unmanaged code?
Describe the Managed Execution Process
Explain me what is the difference between a class and an object, and how do these terms relate to each other?
How server form post-back works?
What are the differences between an interface and an abstract class in .net?
How to produce an assembly?
What is a .net class?
What is Event Bubbling in .NET?
Using activex control in .net?
How will you make .NET programs work in Linux ?
What are the features of dot net?