Tuesday, 9 July 2013

Difference between Procedural and Object Oriented Programming

The different languages reflect the different styles of programming. Procedural programming decomposes a program into various different functional units, each of which can gather and manipulate data as needed. 

Object-oriented programming, on the other hand, decomposes a program into various different data-oriented units or other conceptual units; each unit contains data and various operations that may be performed on that data. Procedural programming forced developers to write highly interdependent code.  

 We can summarize the differences as follows :
 
Procedural Programming
 
– top down design
– create functions to do small tasks
– communicate by parameters and return values
 
Object Oriented Programming
 
– design and represent objects
– determine relationships between objects
– determine attributes each object has
– determine behaviors each object will respond to
– create objects and send messages to them to use or manipulate their attributes

0 comments:

Post a Comment