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
Explain the difference between constants and read-only variables?
What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?
Explain what are an object and a class?
Why is .net used?
Different levels of priority provided by .net.
Please explain what is the difference between constants and read-only variables?
Why inheritance is important?
How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?
Explain About GDI object ?
Explain garbage collection?
If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
Describe difference between inline and code-behind?
How will you register com+ services?