Question

A program makes it possible to order a new car online. It contains items called Car and Customer. These items are most likely to be:

(1 point)
Responses

arrays.

arrays.

classes.

classes.

databases.

databases.

libraries.

libraries.
Skip to navigation

1 answer

The items called Car and Customer are most likely to be classes.

In object-oriented programming, a class is a blueprint for creating objects that encapsulate both data (attributes) and functions (methods) that operate on the data. In this context, Car and Customer would represent the model for the entities involved in the process of ordering a new car online.