C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 10)
10.
Which of the following concepts of OOPS means exposing only necessary information to client?
Encapsulation
Abstraction
Data hiding
Data binding
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
71 comments Page 3 of 8.

Sangita said:   1 decade ago
Please explain the difference between data hiding and and abstraction with a simple program?

Esraa Salem said:   1 decade ago
What is data binding ?

Raju Singh Kumai said:   1 decade ago
The answer should be Abstraction as it allow to show only relevant info. And not the detail part.

Rajaram said:   1 decade ago
In real world scenario, the data should not be exposed to all/any users such bank details. So info/data should be hidden from others.

Shalu gupta said:   1 decade ago
In my opinion abstraction is right answer. Because abstraction shows only essential feature. And its also hide the complexity. Without including background detail.

And in the question asking exposing only necessary information. Nd in data hiding hiding all the complex processing. And make your work simple. Its not shows essential feature.

Shivani said:   1 decade ago
What is difference between data hiding and encapsulation?

KinG Mj said:   1 decade ago
Abstraction is the Right Answer, Data Hiding is purely a part of the Encapsulation.

Vaghasiya Hiren K. said:   1 decade ago
Because the data hiding was one concept of security in OOP.

Than only necessary information to client provided by data hiding.

MetallicA said:   1 decade ago
Abstraction is showing the details that are necessary (not hiding anything) , that defines an object as unique separating from anything else. Ex - car has a steering, 4 wheels etc.

Encapsulation is binding data and methods into one functioning unit.

Data hiding is simply hiding data to be accessed by outside world, achieved by private and protected modifiers.

Dinesh Kumar Lodhi said:   1 decade ago
Abstraction focuses on the essential characteristics of some object, relative to the perspective of the viewer whereas Encapsulation hides the details of the implementation of an object.


Post your comments here:

Your comments will be displayed after verification.