aleemjee
asked on
Object Oriented
What is object oriented programming.
give me detailed information.
give me detailed information.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Structured program (a common name for the alterative) concentrates tasks that must be performed. i.e you write procedures and other control structures for performing task. These procedures are passed information--data--they need to work with. The program is generally organized around the tasks that need to be done.
OOP however conentrates on data and associating that data with procedures that manipulate the data. A single instance of data and the procedures that manipulate it are called a object. The program is generally organizes arround classes or objects that maintain a partiuclar type of data for the program.
For example, A program that maintains a phone book coudl be written either way (any program can be written either way). In structured programming, you might write procedures for loading the phoen book from disk, saving it to disk, adding an entry, deleting an entry, looking up an entry etc. Each of these procedures would be passed the data it needs to work with. In OOP you would create a class that stores the phone book. This class would also contain procedures that operate on the data, like to load it from disk, save it to disk, add an entry, delete an entry, etc. So you have the same sorts of functions in both cases, but they are orginized differently. The general focus in creating the two programs is different, one concentrates on writting tasks that work with data specified to them. The other on creating classes that are both data and the tasks that work with that data.