ICSE Class 9 Computer Applications Question 6 of 10

Elementary Concepts of Objects and Classes — Question 6

Back to all questions
6
Question

Question 6

Explain in detail how a class is different from an object.

Answer

The class is just a specification of the object. The attributes and methods in the class are thus declarations that do not contain any values. However, the object is a concrete instance of a class with properly defined values for each attribute and behaves as per the methods of the class.