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.
A minor change in any part of the code may end up with a bigger modification of large pieces of code. This way of programming is not up to the mark when the user interactivity is higher.Using OOP, a developer can break down any real world item into a collection of objects. These individual objects can be used separately and collectively to accomplish the requirements.
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 behaviours each object will respond to
– create objects and send messages to them to use or manipulate their attributes