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