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
Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?
What is a garbage collector?
What’s different between process and application in .net?
Explain what are possible implementations of distributed applications in .net?
In code behind class, name the type of code found. Is it the server side code or client side code?
What is the use of gacutil.exe?
What are the similarities and difference between class and structure in .net?
Explain what is the difference between odbc and ado?
what is dotnet architecture? can anyone explain that.
Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
Explain how to rename a table using sql queries?
What is .net debug & trace?
What is SOAP? How you will do windows and forms authentication?
What are the improvements made in cas in .net 4.0?
What is difference between .net core and .net standard?