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.
Vishwanath said:
1 decade ago
Abstraction which denotes/shows the essential characteristics of an object which distinguish it from all other kinds of objects.
Ex. Consider a person details.
Doctor needs || Interviewer needs
>name of patient || >name of candidate
>age of patient || >Qualification of candidate
>height || >Result
>Blood pressure || >Skills etc.
>weight
etc.
Both of above doctor and interviewer needs the information of person but with different aspect.
Ex. Consider a person details.
Doctor needs || Interviewer needs
>name of patient || >name of candidate
>age of patient || >Qualification of candidate
>height || >Result
>Blood pressure || >Skills etc.
>weight
etc.
Both of above doctor and interviewer needs the information of person but with different aspect.
(1)
Sanjay said:
1 decade ago
Data hiding is part of data abstraction.
Varshni said:
1 decade ago
Abstraction refers to hiding the complexity i.e. Hiding the steps used to perform operation.
But data hiding refers to hiding certain data from the user.
So data hiding will be the correct answer.
But data hiding refers to hiding certain data from the user.
So data hiding will be the correct answer.
Sushil said:
1 decade ago
Abstraction & Encapsulation are vice versa concept.
ANYA said:
1 decade ago
What is the difference between DATA ABSTRACTION and DATA HIDING?
Vivek kumar said:
1 decade ago
According to me answer should be abstraction because it hides the complexity from the user and provides the required information to the user.
Def said:
1 decade ago
As we are showing only essential information to the client why it can't be abstraction. A/q to the definition it should be. Please clear b/w abstraction and data hidding.
Avin said:
1 decade ago
Abstraction is the concept used for showing only essential information while encapsulation (i.e. data hiding) is a concept used for hiding the irrelevant information from the user.
These two concepts work together in any application.
E.g. In an ATM machine, the whole process is hidden from us (Encapsulation) while only read info is given to us like our balance etc. (Abstraction)
These two concepts work together in any application.
E.g. In an ATM machine, the whole process is hidden from us (Encapsulation) while only read info is given to us like our balance etc. (Abstraction)
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.
Anu said:
1 decade ago
What is the difference between abstraction and data hiding ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers