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 3 of 8.
Vedanti said:
9 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.
Logesh kumar said:
9 years ago
What is the difference data hiding and data binding?
Priya said:
9 years ago
Data hiding: showing important information by hiding the other details.
Data binding: combining two variables, it is of two types: static and dynamic.
Data binding: combining two variables, it is of two types: static and dynamic.
Ejaz Ahmad said:
9 years ago
Abstraction: It is thought process, designing process, it is the process of peacetime while.
Encapsulation: It is coding process, it is implementation of abstraction.
Encapsulation: It is coding process, it is implementation of abstraction.
Kalyani said:
9 years ago
Abstraction is right answer. Because it only gives necessary information rather than details.
Sam said:
9 years ago
In c++ program public part is abstraction means showing only essential things.
Private part is data hiding means hiding implementation details means fields.
And abstraction + data hiding = encapsulation.
Through getter and setter method you can access private part data and code binding together.
Private part is data hiding means hiding implementation details means fields.
And abstraction + data hiding = encapsulation.
Through getter and setter method you can access private part data and code binding together.
ANSHDEEP CHAWLA said:
9 years ago
The concept of Encapsulation = Concept of DATA HIDING + Concept of ABSTRACTION.
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.
Khushbu said:
8 years ago
It is wrong abstraction is right as it shows the user only essential information without including background details.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers