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
If casting fails what type of exception is thrown?
In a C# class we have a SortedList member m_addinProjects
we want to provide an iterator to allow the consumer of
this class access to the items in the collection. Please
provide an iterator method for the AnalyzeAddinsDLL class
below and an example of how it would be used.
namespace AnalyzeAddinsDLL
{
public class AllAddInProjects
{
private SortedList
Is c++ or c# better?
What are the Configuration files in .net?
Can scriptable objects have methods?
What is the use of return in c#?
What's the difference between class and object?
What is an abstract class c#?
What is dynamic object in c#?
How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?
What is the namespcae generally given to the webpage of the .NET Framework ?
Describe ado.net?
Could you explain the difference between func vs action vs predicate?
Can we extend sealed class in c#?
What is a struct in C#?