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 array formula?

551


What is c sharp language?

603


Can you explain template pattern?

650


Which is faster dictionary or list?

625


Can a struct inherit from another struct or class in c#?

592






Explain the difference between and xml documentation tag?

582


What is var c#?

583


Is c# different than c++?

595


Define constructors

631


Define an array?

607


Illustrate race condition?

575


What are examples of desktop applications?

591


What is instantiating a class in c#?

570


What's the difference between the debug class and trace class? Documentation looks the same.

577


What does console readline do in c#?

564