A class is a blueprint for objects. From one class several objects can be created Each object is known as an instance of a particular class. for example, 'cricketers' is a class, wheres, 'player name' is specific instance of the cricketers class describes (hence they are objects).The blueprint for Cricketers class describes how a cricketer would look like(coloured/white clothing, cap etc)and what operations can he perform(bat, bowl, field, etc)similarly, you can imagine 'Musicians' as a class and 'Lata' and 'Asha' as specific instances of this class. Again from one class of musicians several instances(objects) can be created.

0 comments:
Post a Comment