How encapsulation and abstraction defined/used in C#.NET.
Answer Posted / animesh
Encapsulation means hiding the inner details from the user
For eg. We know that to open a lock we put key inside it
but what key will do inside the lock is hiddden. We use
inheritance for encapsulation similarly we use Abstract
classes to define abstraction in C#.
| Is This Answer Correct ? | 17 Yes | 16 No |
Post New Answer View All Answers
Difference between Value type & reference types ? and give the example in .Net?
Why singleton pattern is used in c#?
What is the best dependency injection c#?
What are most desktop applications written in?
What is the use of console readkey ()?
Describe an interface class?
What is an assembly qualified name? Is it a filename? How is it different?
What is dbml file in c#?
What is event delegate in c#?
What is a class in unity?
What is byte c#?
Explain About delegates
Give an example of a ctype.
What is icomparer in c#?
What is “using” statement in c#?