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:
72 comments Page 4 of 8.
Khushbu said:
9 years ago
It is wrong abstraction is right as it shows the user only essential information without including background details.
ROOPESH said:
1 decade ago
Encapsulation: The wrapping up of data and functions into a single unit is called encapsulation.
Abstraction: Abstraction refer to the act of representing the essential features without including the background details.
Data hiding: The data is not accessible to any other function except the function which is binding to that data.
So the answer is B (ABSTRACTION) not c.
Abstraction: Abstraction refer to the act of representing the essential features without including the background details.
Data hiding: The data is not accessible to any other function except the function which is binding to that data.
So the answer is B (ABSTRACTION) not c.
Rajendra said:
8 years ago
Abstraction is the correct answer.
Neha said:
8 years ago
What is the difference between abstraction and data hiding? and why the answer is data hiding and not an abstraction.
Manisha kulkarni said:
8 years ago
I think the answer should be abstraction.
Vishal Singh said:
8 years ago
First thing data hiding is a feature of OOPS Concept and not a pillar of OOPS, the question is clearly asking "Which of the following concepts of OOPS means " So, according to me, that data hiding can't be the correct answer.
Ankit said:
8 years ago
Here,
Data abstraction is the right answer.
Data abstraction means showing the essential info to the user.
Whereas data hiding is just way to hide the info from the user.
(how to achieve data hiding -- private, protected, public).
Data abstraction is the right answer.
Data abstraction means showing the essential info to the user.
Whereas data hiding is just way to hide the info from the user.
(how to achieve data hiding -- private, protected, public).
Sanjay said:
1 decade ago
Data hiding is part of data abstraction.
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers