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.
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)
Ghulam Ali said:
1 year ago
Encapsulation is the right answer.
(1)
Shehab Ashraf said:
1 year 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:
10 years ago
Correct answer is abstraction not data hiding.
Vijuuuuu said:
10 years 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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers