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

Responses

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.

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.

Any language that uses functions and variables is an OOP language.
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.

Encapsulation is one of the fundamental principles of OOP, which allows data and methods that operate on that data to be bundled together, promoting code organization and protection of the object's state.