Which of the following is a correct description of object-oriented programming (OOP)?(1 point)

Responses

OOP languages are based on machine code segments converted into high-level language objects.
OOP languages are based on machine code segments converted into high-level language objects.

Any language that uses functions and variables is an OOP language.
Any language that uses functions and variables is an OOP language.

OOP facilitates encapsulation allowing all the relevant information and functions to be kept in one package.
OOP facilitates encapsulation allowing all the relevant information and functions to be kept in one package.

OOP facilitates inheritance allowing all objects

1 answer

The correct description of object-oriented programming (OOP) from the options given is:

OOP facilitates encapsulation allowing all the relevant information and functions to be kept in one package.

Encapsulation is one of the key principles of OOP, which involves bundling the data (attributes) and methods (functions) that operate on the data into a single unit, known as an object.

The other statements provided are incorrect or misleading in their definitions of OOP.