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
If I want to override a method one of class A and in class b then how do you declare?
Why do we need escape characters?
Where do we set the min and max pool size for connection pooling?
Can you explain template pattern?
What are value types and reference types?
Why do we need oops in c#?
Can you change the value of a constant filed after its declaration?
Can we inherit partial class in c#?
How do you access a constant field declared in a class?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
What is difference between the "throw" and "throw ex" in .net?
Are c and c# the same thing?
Explain the process of Serialization?
What is written in c#?
What does immutable mean in c#?