ICSE Class 10 Computer Applications Question 20 of 25

Class as Basis of All Computation — Question 20

Back to all questions
20
Question

Question 20

Can there be multiple classes for the complete representation of a real world entity ? Give examples.

Answer

Yes, there can be multiple classes for the complete representation of a real world entity.

For example, let us consider a school. A school has multiple units to perform different functions — enquiry/admission desk, fee counter, academic board, activities board, sports board, student help desk, etc. All these units work in conjunction for the efficient working of the school. Now, each unit can be treated as a different class which has required member variables and methods to perform their tasks.