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
Can we inherit class that contains only one private constructor?
What does public mean in c#?
What is the difference between field and property in c#?
How do you sort a list in c#?
Difference between StackPanel and RelativePanel ?
Is there hashmap in c#?
What are some examples of desktop applications?
What is static and use of it?
Can I use exceptions in c#?
Why to use “finally” block in c#?
List some Advantages of switch-case over if else?
What is the use of nullable types in c#?
what is the difference between a struct and a class in c#?
What is difference between singleton and static class in c#?
Which namespaces are necessary to create a localized application?