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 2 of 8.
Mayur said:
9 years ago
THe answer should be Abstraction.
(1)
Nic said:
9 years ago
Actually, abstraction and encapsulation work together for data hiding.
(1)
Ghulam Ali said:
2 years ago
Encapsulation is the right answer.
(1)
Shehab Ashraf said:
2 years ago
Encapsulation and abstraction are both OOP principles used interchangeably to achieve better security and a high level of implementation by hiding sensitive and unnecessary data and only exposing necessary data.
(1)
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)
Lukmon said:
9 years ago
I strongly suggest abstraction which involves keeping the main work and showing the interface alone.
Vipin P Mishra said:
1 decade ago
From my thinking abstraction is right answer because abstraction show only show essential information.
Suchita said:
1 decade ago
Abstraction is process of identifying key aspects of an entity and ignoring the rest. So answer should be abstraction.
Uday said:
1 decade ago
Data hiding means giving/revoking access members. Like access specifiers.
Eg: Public/private/protected. :).
Eg: Public/private/protected. :).
Richa said:
1 decade ago
Correct answer is abstraction not data hiding.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers