What is the difference between the Encapsulation and
Abstraction

Answers were Sorted based on User's Feedback



What is the difference between the Encapsulation and Abstraction..

Answer / anuj

Encapsulation is to hide the code complexities from outside
world where as Abstraction is to show only essential characters.

Is This Answer Correct ?    10 Yes 14 No

What is the difference between the Encapsulation and Abstraction..

Answer / shekhar

Encapsulation means we are hiding the code and data in to a
single unit to protect the data from outside world.

abstraction is a mechanism and practice to reduce and
factor out details so that one can focus on a few concepts
at a time
good day
forum from namdev and shekhar

Is This Answer Correct ?    11 Yes 17 No

What is the difference between the Encapsulation and Abstraction..

Answer / niranjan ambati

By Encapsulating the implementaion, the client can not see
actual implementation classes. Cient can see only
abstraction class, thru which (abstraction class) client
can create the different objects.
Ex: Shape class is Abstraction class
Circle class, Square class is encapsulated, but the
client can create the circle, square shapes by abstraction
class i.e Shape class.
Hope I have clarified the doubt.

Is This Answer Correct ?    9 Yes 17 No

What is the difference between the Encapsulation and Abstraction..

Answer / sandip mishra

I am not sure if this helps....
By encapsulating data user creates an Abstract object.
This is achieved in C++ putting the data members as private
and member functions as public.
The end user only know how to call the methods associated
with the object.

Is This Answer Correct ?    5 Yes 22 No

What is the difference between the Encapsulation and Abstraction..

Answer / karthik

to include data from an upper layer protocol in a lower
layer protocol is called encapsulation
abstraction is a mechanism and practice to reduce and
factor out details so that one can focus on a few concepts
at a time.

Is This Answer Correct ?    7 Yes 60 No

Post New Answer

More MFC Interview Questions

Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


What is primitive and non-primitive application?

2 Answers   HCL,


What is the use of OninitDialog ?

11 Answers   HCL, Nagarro,


How you create a button dynamically?

2 Answers  






if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first

10 Answers   Siemens, Symphony,


What is mfc class hierarchy?

0 Answers  


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


what is the size of a process

2 Answers   E Logic, IBM,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


Categories