ICSE Class 10 Computer Applications Question 21 of 25

Class as Basis of All Computation — Question 21

Back to all questions
21
Question

Question 21

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

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.