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 |
How to setup a timer?
Explain StretchBlt and BitBlt
what if we provide two message handler for same message ?
If there is more than 100 control in a window how we can change the Taborder of a controls
What is serialization ?which function is responsible for serializing data ?
If application hangs while SendMessage is waiting for the result, how you handle it?
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
How can i change the color of a dropdowncombobox elements
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
What is the use of OninitDialog ?
How we call a dialog in another dialog?
What function is called by a document class to notify views that the document has been changed?