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 "class access modifiers" in C#?

536


Can properties be static in c#?

544


Explain partial class in c#?

493


What are the 2 kinds of data type conversions in c#?

508


What are the return types in c#?

489






What are variables in c#?

487


Define method overloading in c#?

585


In C#, explain the difference between overloading and overriding.

562


Can you instantiate a struct without using a new operator in c#?

530


What is as keyword in c#?

570


Is it possible to nest cfml conditional tags?

536


Can mvc be used for desktop applications?

477


Who is a accessibility modifier “protected internal” available to ?

594


What do you mean by for each loop?

478


Are structs value types c#?

472