Limited access

Upgrade to access all content for this subject

Which of the following BESTdescribes the difference between a class and an object?

A

A class cannot reference another class, but an object can reference another object.

B

An object is a blueprint that specifies the data and methods used, and a class is an instance of an object which has a certain state.

C

A variable refers to a class, but a variable cannot be assigned an object.

D

A class is a blueprint that specifies the data and methods used, and an object is an instance of a class which has a certain state.

E

A class refers to different types of information and functionality, whereas only one object can be constructed from each class.

Select an assignment template