When I started studying about Object Oriented Programming years back, I remember how excited I was about it. It is the topic that is sometimes misunderstood or boring when taught to students in university. Many of my fellows had the same feeling so to help them I created this note and they say it really helped them to understand. So I am sharing it with you

I hope this makes you understand Object Oriented Programming very well :

Object Orientation:

First of all from now onwards be a geek and start thinking everything as an object. You are an object, you house are in object, this computer screen you are watching at is an object … What actually OO (Object Orientation) is that suppose you consider yourself for the following task
suppose you want to set up a study table in your room what will you do? First you will see your requirement for studying. Suppose you need a Chair, a table, a laptop computer, a pen and a table lamp. If you concentrate then there are two ways of solving this problem

1) Go to furniture shop and buy table an chair, then go to a computer store and buy a good laptop and then get a pen and table lamp form another shop. At last you unpack all the stuff and put it together, you put table and chair together, then put your laptop on it and then put your pen and table lamp and Tadaaaa! Study table is ready!

2) Go to jungle to cut a tree and get wood to make table, use nails and saw and then make a chair also. Then dig earth for lead and try to make a pencil with wood. And how will u invent a laptop?

Now most of you will laugh reading the second approach to solve a problem because obviously you don’t have to invent everything by yourself. And it is obvious that you will use the 1st approach to solve the problem. Yes! It is they how we solve our daily life problems.

Now think again for the 1st approach! You think you have setup and made the study table by yourself? NO because the chair and table you have bought is made by the woodworker, pencil and paper is made by people of some stationary factory and laptop is made by some specific laptop making company. You are the only one who has combined all of these things as a study table. This is what object orientation is!

You will just concentrate on making a suitable study table and not worried about how the things you are using are invented. Things you are using to setup a study table (that are Chair, Table, Pen, and laptop )are Objects and you are combining these objects together to make a study table so this means you are solving your problem with Objected Oriented Approach. In the same way we solve our problems in programming and such type of programming is called Object Oriented Programming

A technical example of Object Oriented Programming application:

Now think yourself as a programmer! You are required to make a banking application who’s home screen gives user the following options

Welcome to ABC Bank application:
Here is the menu of what you can do
1) Check the amount of money in your bank account
2) Check the amount of tax applied to your savings this month
3) Transfer your money to another account
4) See your account information
Enter you choice:_

Suppose you are not good in Maths, you can make the whole program with excellent logic but you are confused with how to calculate tax. If you know another programmer named (let say)Sheeda who is good in mathematics and he is willing to help you. will write the calculate tax logic in you bank application program. But it is worse approach to solve this problem. Now if you don’t want to show Sheeda your code and what him to help you then how can he help you?
There is solution for it! And that is Object Oriented Programming. You can simply tell Sheeda to make calculating tax program in a separate file and then you can make object of that program in your program and use it for your tax calculation. Its is the same way you used a factory made pencil for you studying purposes in the previous example by adding it to you study table.

Just make you idea about the example above in your mind.