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


Please Help Members By Posting Answers For Below Questions

What are get and set in c#?

665


What are the types of constructors?

582


What is the namespace for datatable in c#?

595


Why is it important to override gethashcode when equals method is overridden?

640


What do you mean by casting a data type?

617






Define assert() method? How does it work?

714


Can scriptable objects have methods?

580


What is data types in c#?

610


Is c# a backend language?

658


Why is ienumerable used?

580


What is the difference between a constant and a static readonly field?

620


what is the difference between interface and multiple interface?

632


What is an arraylist in c#?

695


Can delegates be used as callbacks?

585


What is a interface in c#?

550