what is Encapsulation?

Answer Posted / nilesh

encapsulation is a process of binding or wrapping the data
and the function into a single
unit (eg. Class).
In simple-This keeps the data safe from outside interface
and misuse.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string value type c#?

482


What is a type c#?

494


There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?

1581


What is the difference between a constant and a static readonly field?

517


What is null character in string?

512






How can you prevent escaping on backslashes in C# with string definitions?

693


Why are strings immutable c#?

463


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

542


How does yield return work c#?

503


What is the difference between dll and lib?

472


How C# 4.0 supports dynamic programming language?

565


What does dbml stand for?

545


Can you inherit multiple abstract classes in c#?

483


What is xslt in c#?

465


What is the difference between Decorator and Adapter pattern?

518