KnowledgeBoat Logo
|

Computer Applications

Why are classes said to be abstractions of or a set of objects ?

Objects & Classes

9 Likes

Answer

A class is a blueprint of a set of objects that have a common structure and behaviour. Once a class is defined, any number of objects can be created. All the objects have common attributes and behaviour. Thus, classes are said to be abstractions of or a set of objects. We can think of a class as a cookie cutter and an object as an actual cookie.

Answered By

6 Likes


Related Questions