Saturday 1 August 2015

INTRODUCING CLASSES:

A class is a blueprint of set of objects that share common characteristics and behaviour. An object is its instance.

A method is an association operation of an object. The 'behaviour' of object is represented through methods.

Objects represent the abstraction represented by the class in real sense.

A class represents an abstraction where characteristics are implemented through data and behaviour through methods or functions.

In OOP(object oriented programming), objects are defined by defining a class for them.

Object Factory is producer of objects, that accepts some basic information and creates objects based on that information.

A class is an Object Factory. It contains all statements needed to create an object, its attributes as well as statements describing operations that the object will be able to perform.

No comments:

Post a Comment