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

Vishwanath said:   1 decade ago
Abstraction which denotes/shows the essential characteristics of an object which distinguish it from all other kinds of objects.

Ex. Consider a person details.

Doctor needs || Interviewer needs
>name of patient || >name of candidate
>age of patient || >Qualification of candidate
>height || >Result
>Blood pressure || >Skills etc.
>weight
etc.


Both of above doctor and interviewer needs the information of person but with different aspect.
(1)

Chaitanya said:   1 decade ago
Data hiding is also called encapsulation is correct/not?

Sonali said:   1 decade ago
Data hiding is the intense version of encapsulation.

Aakriti said:   1 decade ago
According to me abstraction is the correct answer because"data hiding" refers to only hiding of data but doesn't say anything about displaying only necessary info.

Abstraction means exposing only the necessary data hiding the background information.

Pavan said:   1 decade ago
No @Chaitanya saying that would be incorrect.

Encapsulation refers to binding data and functions working on it in a single component But data hiding is different from it.

Pooja said:   1 decade ago
Abstraction - Showing essential features without including background details.

Data hiding - Controlling the accessibility of data like using access specifiers.

So the answer should be ABSTRACTION not data hiding.

Anshu said:   1 decade ago
If you consider the broad meaning, data hiding may seem right. But to be very precise, DATA ABSTRACTION should be the correct answer.

Sarang said:   1 decade ago
It hides the data and expose only some information which is declared in the person class but we can access it by public variable.

Shruti said:   1 decade ago
The answer is abstraction as it hides the complexities from the user and shows only the essential features. Whereas data hiding is hiding the data altogether from the user.

Jwala said:   1 decade ago
The answer is abstraction as it hides the complexities from the user and shows only the essential features. Whereas data hiding is hiding the data altogether from the user means data hiding means public, protective or private. Hence data hiding is correct answer.


Post your comments here:

Your comments will be displayed after verification.