Saturday, April 10, 2021

Difference between Structured Programming and Object Oriented Programming

Structured Programming, Object Oriented Programming, Oracle Database Preparation, Oracle Database Certification, Oracle Database Guides, Oracle Database Learning, Database Exam Prep

1. Structured Programming :

Structured Programming, as name suggests, is a technique that is considered as precursor to OOP and usually consists of well-structured and separated modules. In this programming, user can create its own user-defined functions as well as this methodology tries to resolve issues that are associated with unconditional transfers to allow programmers follow logic of programs. It also requires more discipline at the design and logical structing stage.

Example : Pascal, ALGOL, C, Modula-2, etc.

2. Object-Oriented Programming :

Structured Programming, Object Oriented Programming, Oracle Database Preparation, Oracle Database Certification, Oracle Database Guides, Oracle Database Learning, Database Exam Prep
Object-Oriented Programming, as name suggests, is a different approach to programming that brings together data and functions that execute on them. It basically supports encapsulation, abstraction, inheritance, polymorphism, etc. It also includes data hiding feature therefore it is more secure. This model is based on real life entities that focuses on by whom task is to be done rather than focusing on what to do.

Example : JAVA, C#, C++, etc.

Difference between Structured Programming and Object-Oriented Programming:

Structured Programming Object-Oriented Programming 
It is a subset of procedural programming. It relies on concept of objects that contain data and code.
Programs are divided into small programs or functions.   Programs are divided into objects or entities. 
It is all about facilitating creation of programs with readable code and reusable components.   It is all about creating objects that usually contain both functions and data.  
Its main aim is to improve and increase quality, clarity, and development time of computer program.   Its main aim is to improve and increase both quality and productivity of system analysis and design.  
It simply focuses on functions and processes that usually work on data.  It simply focuses on representing both structure and behavior of information system into tiny or small modules that generally combines data and process both. 
It is a method of organizing, managing and coding programs that can give or provide much easier modification and understanding.  It is a method in which set of objects can vary dynamically and can execute just by acting and reading to each other.  
In this, methods are written globally and code lines are processed one by one i.e., Run sequentially.   In this, method works dynamically, make calls as per need of code for certain time. 
It generally follows “Top-Down Approach”. It generally follows “Bottom-Up Approach”.  
It provides less flexibility and abstraction as compared to object-oriented programming.   It provides more flexibility and abstraction as compared to structured programming.  
It is more difficult to modify structured program and reuse code as compared to object-oriented programs.   It is less difficult to modify object-oriented programs and reuse code as compared to structured programs.  
It gives more importance of code.   It gives more importance to data.

Related Posts

0 comments:

Post a Comment