what is Encapsulation?

Answer Posted / vishal singh

Encapsulation is a process of binding or wrapping the data
and the codes that operates on the data into a single
entity (eg. Class).
This keeps the data safe from outside interface and misuse.
One way to think about encapsulation is as a protective
wrapper that prevents code and data from being arbitrarily
accessed by other code defined outside the wrapper.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are callback methods in c#?

508


What is a ienumerator?

501


What is the role of the datareader class in ado.net connections?

518


How do you convert byte array to hexadecimal string, and vice versa?

546


What is a .exe extension files? How is it similar to .dll extension files?

584






What is multidimensional array in c#?

470


Which are the loop types available in c#?

499


What is the difference between protected and internal in c#?

470


if you do have a stack overflow profile.what is your ranking?

1487


What are the value types in c#?

515


How to add controls dynamically to the form using c#.net.

480


Are cao stateful in nature?

481


What is expression tree with example?

489


What is the meaning of extention?

490


What is object array in c#?

522