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 3 of 8.
Vedanti said:
10 years ago
Abstraction is showing only required data to users. The data not to be shown is hidden by default.
While data hiding is specifying the type of access to data. Which may not affect users operation or user may not require. But we can decide the access and if access is given we can see the data which is not the case with abstraction.
While data hiding is specifying the type of access to data. Which may not affect users operation or user may not require. But we can decide the access and if access is given we can see the data which is not the case with abstraction.
Vijuuuuu said:
1 decade ago
God knows how ATM counts cash. It is example of?
A) Encapsulation.
B) Abstraction.
C) Data hiding.
D) Data binding.
A) Encapsulation.
B) Abstraction.
C) Data hiding.
D) Data binding.
Richa said:
1 decade ago
Correct answer is abstraction not data hiding.
Uday said:
1 decade ago
Data hiding means giving/revoking access members. Like access specifiers.
Eg: Public/private/protected. :).
Eg: Public/private/protected. :).
Vipin P Mishra said:
1 decade ago
From my thinking abstraction is right answer because abstraction show only show essential information.
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.
ANSHDEEP CHAWLA said:
9 years ago
The concept of Encapsulation = Concept of DATA HIDING + Concept of ABSTRACTION.
Lukmon said:
9 years ago
I strongly suggest abstraction which involves keeping the main work and showing the interface alone.
Anzee said:
9 years ago
It is abstraction where we only show the important data to the user and hides all remaining.
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