111k views
0 votes
This refers to the combining of data and code into a single object. A. Data hiding B. Abstraction C. Object D. Encapsulation

1 Answer

5 votes

Answer: D) Encapsulation

Explanation: Encapsulation is the technique in the object-oriented programming concept (OOPs) that keeps the data and other related function to become a single unit/object in encapsulated form.This is to make the object to be hidden from the outside world so that data present in it can be internally preserved.

Other option are incorrect because abstraction is the extracting only relevant data from the whole, data hiding consist of the data that is hidden for purpose, and object are the units of the data .Thus, the correct option is option(D).

User Mirandes
by
5.7k points