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

Responses

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 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.

OOP facilitates inheritance allowing all objects to access methods from all other classes.
OOP facilitates inheritance allowing all objects to access methods from all other classes.

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

1 answer

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

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

This statement accurately reflects one of the key principles of OOP, which emphasizes bundling the data (attributes) and the methods (functions) that operate on the data into single units called objects, promoting information hiding and modularity.