What is the difference between the Encapsulation and
Abstraction
Answers were Sorted based on User's Feedback
Answer / arsalan ansari
Abstraction basically showing the common and currently known
information to the user where encapsulation is hiding the
data details to the outside world
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / prajwal
Encapsulation is nothing but hiding information it is also
called as data hiding, while abstraction denotes the
essential characteristics of an object which differentiates
from other kinds of object.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / tarun verma
Encapsulation means wrapping up something.
in programming generally data and methods are wrapped up
into a single unit called class. This wrapping is called as
encapsulation.
Abstraction means hiding the complexity of something and
just seeing it's overview.As We See A Car without Knowing
It's Inner Complexity.
In programming it is achieved by objects.
As we just invoke the methods with a object without knowing
it's details.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / priya
Encapsulation is merely securing and hiding the internal
data from the outside world.
Abstraction is a way of providing generalization.it
focuses more on what the object does instead of how it
does.
Example : A yahoo messanger.
Users know the way to exchange chat messages.But the
internals about how it is conveyed at the other end is not
know ..this is known as an abstraction.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / moni
abstraction means hiding the data and encapsulation means
protecting the data through hiding
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / suman chowdary
Encapsulation is the process of compartmentalizing the
elements of an abstraction that defines the structure and
behavior. Encapsulation helps to separate the contractual
interface of an abstraction and implementation .
Abstraction defines the essential characteristics of an
object that distinguish it from all other kinds of an objects
| Is This Answer Correct ? | 9 Yes | 10 No |
Answer / praveen reddy
Encapsulation it's process of Binding the member variable
of a class along with member functions.
Abstraction is Hiding the implementation but provide the
services................
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / brijendra kumar(java xavient)
Encapsulation is to hide the code complexities from outside
world means in Encapsulation the implementaion, the client
can not see actual implementation classes.
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.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / bala
Encapsulation: Binding of object and methods inside the single unit.
Abstraction:Hiding the details of data and methods from how it would be implemented.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / praveen deshmukh
Encapsulation is related to object and abstraction is blong
to class
| Is This Answer Correct ? | 4 Yes | 6 No |
1)How to change a text of a button as Dynamically?
how many types of messages are their
Which CPrintInfo member variable must be set for multiple page printouts?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
How do you change the properties for a tree view control that is part of the CTreeView class?
What is the difference between GetMessage and PeekMessage ?
Tell me the work of HTREDUCE and HTZOOM
What are the advantages of using Doc/View or SDI over DialogBox
What is the range of intensity of RGB
How can i change the color of a dropdowncombobox elements
1)dynamic creation of a Button ?
what are the feauters of CObject