Welcome to graduate2professional.blogspot.com

Thursday, May 28, 2009

Difference between Procedural and Object Oriented Programming

Procedural:
The problem is decomposed into individual procedures or subroutines. This decomposition is
usually done in a top down manner. In a top down approach, once a section of the problem has been identified as being implementable by a procedure,it too is broken down into individual procedures.The data however, is not usually part of this decomposition.
Eg: C & Pascal

Object-oriented:
The problem is decomposed into interacting objects. Each object encapsulates and hides
methods that manipulate the hidden state of the object. A message sent to an object evokes the encapsulated method that then performs the requested task.
Eg: ADA95,java

No comments:

Post a Comment