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?
Encapsulation
Abstraction
Data hiding
Data binding
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
70 comments Page 1 of 7.

Shehab Ashraf said:   2 weeks 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.

Krati said:   2 months ago
Abstraction is the right answer because in this we show the necessary data and hide the remaining data.
(1)

Ghulam Ali said:   6 months ago
Encapsulation is the right answer.

Pragya said:   2 years ago
Abstraction will be the correct answer.
(23)

AJEET GUPTA said:   3 years ago
Data hiding:

Data hiding is hiding the details of internal data members of an object. Data hiding is also known as Information hiding.

Abstraction:

It can be defined as the separation of unnecessary details or explanations from system requirements so as to reduce the complexities of understanding requirements.

Encapsulation:

It is a mechanism that puts the data and function together. It is the result of hiding the implementation details of an object from its user. The object hides its data to de accessed by only those functions which are packed in the class of that object.

Dynamic Binding:

Dynamic binding is the process of resolving the function to be associated with the respective functions calls during their runtime rather than compile time.
(9)

Maya sharma said:   4 years ago
What is the difference between abstraction and data hiding?
(2)

Cipachu said:   5 years ago
Abstraction is answer because data hiding is just a term.
(4)

Sparsh said:   5 years ago
This should be Abstraction:

Definition of abstraction: In object-oriented programming, abstraction is one of three central principles (along with encapsulation and inheritance). Through the process of abstraction, a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.
(2)

Sudhir said:   6 years ago
Abstraction means nothing but hiding data inside the class showing only essential feature and hiding the rest of calculation done behind.
(2)

Ankit said:   6 years ago
Here,

Data abstraction is the right answer.
Data abstraction means showing the essential info to the user.
Whereas data hiding is just way to hide the info from the user.
(how to achieve data hiding -- private, protected, public).


Post your comments here:

Your comments will be displayed after verification.