Computer Applications
Explain in detail how a class is different from an object.
OOP Intro Java
48 Likes
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.
Answered By
28 Likes
Related Questions
Mention five possible attributes and three possible behaviours of the following entities:
Tree
Give the reason why a class is known as:
A composite data type
Give the reason why a class is known as:
An object factory
Mention five possible attributes and three possible behaviours of the following entities:
Cloud