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
What is 3 tier architecture?
What does cil do?
Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column
Explain what are an object and a class?
What is WSDL? Explain its architecture?
how can i create a table from front end to back end in wabe page?
Where does the gac exist ?
Differences between datagrid, datalist and repeater in .net?
Explain me difference between public and static modifiers?
Tell us what is the native image generator?
What is the need of OLE-automation?
What is .net environment?
What is interface and abstract class in .net?
What versions of .net are there?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component