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?
Discussion:
71 comments Page 6 of 8.
Sangita said:
1 decade ago
Please explain the difference between data hiding and and abstraction with a simple program?
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.
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.
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.
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.
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.
Data hiding - Controlling the accessibility of data like using access specifiers.
So the answer should be ABSTRACTION not data hiding.
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.
Encapsulation refers to binding data and functions working on it in a single component But data hiding is different from it.
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.
Abstraction means exposing only the necessary data hiding the background information.
Sonali said:
1 decade ago
Data hiding is the intense version of encapsulation.
Chaitanya said:
1 decade ago
Data hiding is also called encapsulation is correct/not?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers