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 6 of 8.

Def said:   1 decade ago
As we are showing only essential information to the client why it can't be abstraction. A/q to the definition it should be. Please clear b/w abstraction and data hidding.

Vishnu said:   1 decade ago
Data Encapsulation : It is the process of binding of the data and functions together as a single unit.
Data Abstraction : It is the process of exposing only the interfaces and hiding the other details from the user.

Avin said:   1 decade ago
Abstraction is the concept used for showing only essential information while encapsulation (i.e. data hiding) is a concept used for hiding the irrelevant information from the user.

These two concepts work together in any application.

E.g. In an ATM machine, the whole process is hidden from us (Encapsulation) while only read info is given to us like our balance etc. (Abstraction)

Anu said:   1 decade ago
What is the difference between abstraction and data hiding ?

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.

ABC said:   1 decade ago
Abstraction is the concept where only important features are shown so that user only use that information he/she should not worried about internal working.

K2u2007 said:   1 decade ago
Declaring data members with access specifier private is known as data hiding. When a program creates a GradeBook object, data member courseName is encapsulated (hidden).

In the object and can be accessed only by member functions of the object's class. In class GradeBook, member functions setCourseName and getCourseName manipulate the data Member courseName directly.

HINA said:   1 decade ago
According to me abstraction is the correct answer because abstraction focuses on the main aspect of the application and hide the internal details so that it will be more flexible for the user to use.

Aravind said:   1 decade ago
Write a simple single program to diff b/w data hiding and abstraction?

Ansuman kar said:   1 decade ago
The answer would be Abstraction not data hiding, because in abstraction only we show the user the necessary datas.

Further, if there is difference between abstraction and data hiding, hence provide me a suitable difference between the two.


Post your comments here:

Your comments will be displayed after verification.