Computer Applications
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.