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 2 of 8.
Ankit said:
7 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).
Vishal Singh said:
7 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.
Manisha kulkarni said:
7 years ago
I think the answer should be abstraction.
Neha said:
7 years ago
What is the difference between abstraction and data hiding? and why the answer is data hiding and not an abstraction.
Rajendra said:
8 years ago
Abstraction is the correct answer.
Chaitanya Bhargav said:
8 years ago
Data hiding means " Hiding the our internal data"..
Data Abstraction means " Hiding the internal implementation".
Encapsulation = Data Hiding + data abstraction.
Encapsulation means " Binding the our internal data and the behavior" .
Data Abstraction means " Hiding the internal implementation".
Encapsulation = Data Hiding + data abstraction.
Encapsulation means " Binding the our internal data and the behavior" .
(1)
Nic said:
8 years ago
Actually, abstraction and encapsulation work together for data hiding.
(1)
Mayur said:
8 years ago
THe answer should be Abstraction.
(1)
Khushbu said:
8 years ago
It is wrong abstraction is right as it shows the user only essential information without including background details.
Sayan Roy said:
9 years ago
The correct Answer should be an abstraction.
Abstraction means to provide necessary details and hides background details. Example- Cout is a predefine object of ostream class. We don't know how to implement done in ostream class but we know that how to use cout object. That is an abstraction.
Abstraction means to provide necessary details and hides background details. Example- Cout is a predefine object of ostream class. We don't know how to implement done in ostream class but we know that how to use cout object. That is an abstraction.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers