Computer Applications
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.
Related Questions
Mention five possible attributes and three possible behaviours of the following entities:
Cloud
Mention five possible attributes and three possible behaviours of the following entities:
Tree
Give the reason why a class is known as:
An object factory
Give the reason why a class is known as:
A composite data type