Skip to main content

Posts

Showing posts with the label computer programming

Featured

Object Oriented Programming Introduction

Object oriented programming (OOP) is an approach that views a problem in terms of object. It modularizes the program by creating partitioned memory area for characteristics and behaviour of the objects involved. Every object has its own characteristics and behaviours. For example, characteristics of some car could be: orange in colour, hatchback etc. and behaviour could be: moving, carrying passengers etc. In that case, even human beings are objects because human beings have characteristics such as height, weight, hair colour etc. and behaviours like walking, talking, dancing etc.  Objects are everywhere and viewing the objects as objects while solving a problem will be a much effective approach than writing a list of instructions (or actions) for the computer to follow (like in procedure oriented programming). OOP means building objects in the program. Every object represents a real life object. For instance, consider the lock in your mobile phone. It opens only when the right key (p

Object Oriented Programming Introduction