In Object Orientated programming a class is a blueprint for an object (real world object or abstract object/concept). e.g. if you are modelling a car it may have manufacturer, model, engine capacity etc. as attributes. You can then provide methods to update or access these attributes, and perform other functions on these attributes to make the car class act as you require it to.
|