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
Wht executescaler method is used?
Which class does the remote object has to inherit?
Which constructor is called first in c#?
What is anonymous method in c#?
What is the difference between hashtable and dictionary?
What is the use of console readline () in c#?
What does the keyword “virtual†declare for a method or property?
What is literal control
How can we set class to be inherited, but prevent the method from being over-ridden?
Does c# support a variable number of arguments?
What is the difference between do and while loop?
What do constructors do in c#?
Is clr a compiler?
What is the difference between Singleton design pattern and Factory design pattern?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?