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.
Sam said:
9 years ago
In c++ program public part is abstraction means showing only essential things.
Private part is data hiding means hiding implementation details means fields.
And abstraction + data hiding = encapsulation.
Through getter and setter method you can access private part data and code binding together.
Private part is data hiding means hiding implementation details means fields.
And abstraction + data hiding = encapsulation.
Through getter and setter method you can access private part data and code binding together.
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.
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)
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.
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.
Ansuman kar said:
1 decade ago
The answer would be Abstraction not data hiding, because in abstraction only we show the user the necessary datas.
Further, if there is difference between abstraction and data hiding, hence provide me a suitable difference between the two.
Further, if there is difference between abstraction and data hiding, hence provide me a suitable difference between the two.
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.
Vishnu said:
1 decade ago
Data Encapsulation : It is the process of binding of the data and functions together as a single unit.
Data Abstraction : It is the process of exposing only the interfaces and hiding the other details from the user.
Data Abstraction : It is the process of exposing only the interfaces and hiding the other details from the user.
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers