| Question |
What is the difference between the Encapsulation and
Abstraction |
|
Question Submitted By :: Ramaswamy |
|
I also faced this Question!! |
Rank |
Answer Posted By |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 1 | 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.  |
| Karthik |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 2 | Encapsulation means we hide the data from directly
interaction and Abstraction means
we bother about what the object can do but don't bother
about how it does?  |
| Rohini |
| |
|
|
| |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 3 | Encapsulation means we are hiding the code and data in to a
single unit to protect the data from outside world.
Abstraction means we know about the object how it can be
used but we dont know how it is implemented. and we can
hide the data using the AccessSpecifiers.  |
| K.ramaswamy |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 4 | 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  |
| Shekhar |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 5 | 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.  |
| Sandip Mishra |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 6 | Encapsulation is to hide the code complexities from outside
world where as Abstraction is to show only essential characters.  |
| Anuj |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 7 | 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.  |
| Niranjan Ambati |
| |
|
Re: What is the difference between the Encapsulation and
Abstraction |
Answer
# 8 | Encapsulation is a process of binding data and methods into
a single unit.
Abstraction is a process where by we identify important
aspects of phenomenon and ignoring its details.  |
| Ramaraju |
| |
| |