Object Orientated Programming (OOP) is one of the programming paradigms we have discussed here.
OOP creates templates, called classes. Each class is then used to create an 'object'. In OOP vocabulary an object is an instance of the class. Many instances (objects) of the class can be present as the program runs.
For example, a game might have a 'monster' class. Many monster objects can then be coded from that class.
The class has set of attributes i.e. variables. They also have a defined list of actions that they can carry out, called methods.
Very popular OOP computer languages include C++, Smalltalk, Java and Python.
This section will describe some important OOP concepts that include
We shall use the pseudocode format approved by OCR in the examples.