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
Describe the compilation process for .net code?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?
How inheritance works in .net?
What is RCW (Run time Callable Wrappers)?
Explain about the features and elements present in Visual studio.NET IDE?
Explain how to spawn a thread?
How to view a .NET assembly?
What is typical about a windows process in regards to memory allocation in dot net?
What is the difference between a debug and release build?
What does jit compilation do in .net?
What are the different types of remote object creation mode in .net?
Is .net core free?
Explain the differences between server-side code and client-side code.
What is difference between static page and dynamic page?