How encapsulation and abstraction defined/used in C#.NET.
Answer Posted / gitesh sankhe
Encapsulation has two faces; data abstraction and
information hiding. Data abstraction is a type seen from
the outside. Information hiding is a type seen from the
inside.
Abstraction focuses on the outside view of an object (i.e.
the interface)
Encapsulation (information hiding ) prevents clients from
seeing its inside view, where the behavior of the
abstraction is implemented
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Explain polymorphism in c# with a simple example?
what is IFormatable
Explain what is copy constructor?
What type is string in c#?
Define delay signing?
What is the difference between class and namespace?
What is type safe code?
Is string passed by reference in c#?
What is the difference between // comments, /* */ comments and /// comments?
What can we do to handle multiple exceptions?
What is difference between Enum and Struct?
What is this keyword in C#?
Which config file has all the supported channels/protocol?
What is the property of a class in c#?
If I return out of a try/finally in c#, does the code in the finally-clause run?