Question

An object can have which of the following?

(1 point)
Responses

a library and an API

a library and an API

version control and an API

version control and an API

attributes and methods

attributes and methods

methods and a library

methods and a library
Skip to navigation

page 1 of 1

1 answer

An object can have attributes and methods.

In object-oriented programming, an object is an instance of a class, and it typically contains data (attributes) and procedures (methods) that operate on that data.

The other options (library, API, version control) pertain to different concepts and are not directly characteristics of an object itself.