Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: MilanKMPosted on 2006-03-16 at 13:14:53ID: 16209684
Structured Programming:~ --
--------
---------- ---------- ---------- -
--------------------------
Structured Programming (also known as modular programming) is a technique to organize a program in hierarchy of modules with a single entry point & a single exit point. It can also be said a hierarchial flow of programs which is a subset of procedural programming. Three kinds of flow control are used, sequential, test and iteration.
Pros: As Structured Programming enforces a logical structure on which the program being written. For this it is more efficient and easier to understand and modify.
Cons: No have much support for structure for data to the model.
Object Oriented Programming:~
--------------------------
Object Oriented Programming can be said one type of structured programming that uses structured programming for program flow and adds more structure for data to the model. In words "Object Oriented" means a collection of discreate objects that incorporates both data structure and behavior. OOP generally has four aspects: indentity, classification, polymorphism and inheritance.
Advantages of OOP over Structured Programming:~
--------------------------
[1] OOP combines Data and Behavior
[2] OOP promotes sharing at several different levels. Inheritance of both Data Structure and Behavior allows common structure to be shared among several similar subclasses without redundancy.
[3] Emphasis on Object Structure, not Procedural Structure. OOP stress specifying what an object is, rather than how it is used.
[4] Synergy, that means each concepts of OOP (indentity, classification, polymorphism and inheritance) can be used in isolation, but together they complement each other synergistically.
Those all the reasons why I prefer OOP over Structured Programming.
Hope you can understand what I'm trying to express.
Thanking You
MilanKM