Computer Applications
Explain the following statement — "Class is a specification for objects".
OOP Intro Java
67 Likes
Answer
As class describes the common attributes and behaviours of its objects in detail, hence we can say that a class is a specification for objects. It can be viewed as a template or blueprint for multiple objects with similar features.
Answered By
40 Likes
Related Questions
Explain the following statement — "Abstraction is relative to the perspective of the viewer".
What are the differences between Procedural Programming and Object-oriented Programming?
Mention five possible attributes and three possible behaviours of the following entities:
Employee
What are objects? Give five examples.