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.
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).
Krsna SP said:
2 months ago
Abstraction is the correct answer as its main purpose is to show only the necessary information. Abstraction means exposing only the essential features of an object to the client while hiding the internal implementation details.
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