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 is the task perform by clr?

570


Define c# i/o classes?

526


What is using keyword in C#?

562


What is int tryparse in c#?

509


What are the applications of c#?

465






How do I calculate relative time?

494


What is a type c#?

495


What is an escape sequence?

512


What is the default boolean value in c#?

501


What is inline function in c#?

505


What is jagged array?

540


What is c# and why it is used for?

498


What is unmannaged code and will CLR handle this kind of code or not .

585


Can we inherit sealed class in c#?

467


What is difference between dictionary and hashtable in c#?

426