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 will you load an assembly which is not referenced by current assembly?
What is static constructor, when it will be fired?
How can you instantiate a tuple?
Why did they call it .net?
Explain .net framework overview?
What is RPC? What is the use of it?
How do you view the methods and members of a dll?
Describe the use of following com+ services jit activation, queued components, object pooling.?
What's singlecall activation mode used for in .net?
What is the microsoft .net?
What is finalize method in .net?
Do you know what's the difference between .net and laravel?
What is the difference between odbc and ado?
Example from .net. Integer & struct are value types or reference types in .net?
Show different types of collection in .NET?