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 7 of 8.
Pankaj said:
1 decade ago
How the answer is data hiding?
Dinesh Kumar Lodhi said:
1 decade ago
Abstraction focuses on the essential characteristics of some object, relative to the perspective of the viewer whereas Encapsulation hides the details of the implementation of an object.
MetallicA said:
1 decade ago
Abstraction is showing the details that are necessary (not hiding anything) , that defines an object as unique separating from anything else. Ex - car has a steering, 4 wheels etc.
Encapsulation is binding data and methods into one functioning unit.
Data hiding is simply hiding data to be accessed by outside world, achieved by private and protected modifiers.
Encapsulation is binding data and methods into one functioning unit.
Data hiding is simply hiding data to be accessed by outside world, achieved by private and protected modifiers.
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.
KinG Mj said:
1 decade ago
Abstraction is the Right Answer, Data Hiding is purely a part of the Encapsulation.
Shivani said:
1 decade ago
What is difference between data hiding and encapsulation?
Shalu gupta said:
1 decade ago
In my opinion abstraction is right answer. Because abstraction shows only essential feature. And its also hide the complexity. Without including background detail.
And in the question asking exposing only necessary information. Nd in data hiding hiding all the complex processing. And make your work simple. Its not shows essential feature.
And in the question asking exposing only necessary information. Nd in data hiding hiding all the complex processing. And make your work simple. Its not shows essential feature.
Rajaram said:
1 decade ago
In real world scenario, the data should not be exposed to all/any users such bank details. So info/data should be hidden from others.
Raju Singh Kumai said:
1 decade ago
The answer should be Abstraction as it allow to show only relevant info. And not the detail part.
Esraa Salem said:
1 decade ago
What is data binding ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers