Computer Applications

'There can be many abstractions of an object'. Comment.

OOP Intro Java

4 Likes

Answer

There can be many classes defined for an entity, for a class represents an abstraction. An abstraction is always relative to the purpose or user.

For instance, if we talk of a student, we can talk of anything that belongs to her in the real world like her name, family, address, marks obtained by her, her roll-number in the class, her medical history, her talents, her awards etc. But when we talk of a student result tracking system, the abstraction for it would be - her rollno, name, marks obtained etc. For extra-curricular activities, the abstraction would be - her rollno, talents and awards.

Thus, there can be many abstractions of an object.

Answered By

2 Likes


Related Questions