Which statement about a class and an object is correct?
- A.A class is an instance of an object
- B.An object is a blueprint and a class is its instance
- C.A class is a blueprint and an object is its instance
- D.A class and an object both occupy memory in the same way
Show answer
A class only describes the data members and member functions that its objects will have, while an object is created from the class, occupies memory and holds actual values; one class may have any number of objects.
Read the full explanation →