Upgrade to access all content for this subject
Which of the following BESTdescribes the difference between a class and an object?
A class cannot reference another class, but an object can reference another object.
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.
A variable refers to a class, but a variable cannot be assigned an object.
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.
A class refers to different types of information and functionality, whereas only one object can be constructed from each class.