25 July 2009

0 BASICS OF JAVA - Object Oriented Concepts (OOC) contd.

BASICS OF JAVA - CHAPTER-2 -Object Oriented Concepts (OOC) contd.

In this page we are discussing about advantages and disadvantages of Object oriented concept. In order to analyse the various advantages and disadvantages of the object oriented concepts, we will compare the object oriented concept against the Procedural Programming methodology.

Object Oriented Programming vs Procedural Programming

Object Oriented Programming Procedural Programming
Emphasis on Data; binding of data structures with methods that operate on data Emphasis on algorithms, procedures
Real world is represented by objects mimicking external entities. Allows modeling of real life problem into objects
with state and behavior
Real world is represented by logical entities and control flow. Tries to fit real life problem into procedural language
Data (State) is encapsulated effectively by methods (Behavior) In a given module, data and procedures are separate
Program modules are integrated parts of overall program. Objects interact with each other by Message passing Program modules are linked through parameter passing mechanism
Uses abstraction at class and object level Uses abstraction at procedure level
Object Oriented decomposition focuses on abstracted objects and their interaction Algorithmic decomposition tends to focus on the sequence of events
Active and intelligent data structures (object) encapsulates all passive procedures Passive and dumb data structures used by active methods
Object Oriented Languages: C++, Small Talk, Java, C#, JavaScript etc Procedural languages: C, COBOL, PASCAL


0 comments:

Feeds Comments

Please give your valuable comments.