Fill This Form To Receive Instant Help

Help in Homework

Structured and Object Oriented Programming

  • Words: 978

Published: Jun 01, 2024

Computer program is a group of commands that instruct the central processing unit to execute desired tasks. Structured programming explains a type of programming approach whereby a single structure contains all instructions. Object oriented programming model arranges software blueprints around objects instead of commands and logic. The major contrast between object oriented and structured programming is that OOP allows designing a program using a batch of objects while structured programming allows development and redesigning of a program through utilizing a group of commands. I would use both programming approaches to increase the chances of improving and developing my program. Using the two methods could help me utilize the permission in structured programming to develop my program and provide room for using different objects and creating reusable code in OOP.

OOP authorizes the designer to represent the real-world structures using objects. Objects such as students, books, and employers are data fields with unique states and behavior. Objects interact with each other through passing messages to one another. Moreover, creating objects requires class blueprints, i.e. to create objects it is necessary to have classes (Urdhwareshe, 2016). Structured programming uses a group of commands in form of statements enclosed in curly braces. Therefore, execution of commands in this method occurs in a structured and serial manner. Each of the designed instructions perform subtasks since each instruction represents different functionality. This makes it easier for the programmer to troubleshoot and test the program.

Differences between Structured Programming and OOP.

Structured programming approach splits the code into functions while OOP method relies on created objects that contain data fields and the procedural code. It is easier to redesign object-oriented instructions in OOP whereas it is difficult to change the commands in structured programming. Functions in structured programming communicates by calling the instructions in the primary program while in OOP objects communicate through passing information. However, despite the differences in the two approaches, some programming languages like C++ use both methods.

Advantages and Disadvantages.

Some of the advantages of structured programming include, easier troubleshooting, advancement is simple since it requires less time and effort, it is easy to read and understand the program, require simple maintenance, the approach is mostly problem based instead of machine based, and the method is user friendly. Structured programming has disadvantages such as, it takes time to convert the instructions to machine code sine the approach is problem based, converted machine language is different from the assembly language, and it requires frequent updates since the data fields keep changing. OOP has several advantages, which include, re- using instructions in the program, providing only the necessary data thus improving data security, and it is simple to redesign and maintain existing instructions. Disadvantages of OOP include slower speed than other approaches due to its larger size, OOP requires more effort to create, and finally, Object Oriented Programs have larger sizes compared to other programs.

Examples of Programming.

Programming language used in Java is object-oriented thus, every instruction in Java programming uses object. Python uses several approaches during programming. OOP is one of the most commonly used approach in Python since it focuses on designing reusable program. Von Neumann programming utilizes structured programming approach since the programming equipment has the ability to change its behavior according to the data input. C++ language developed from C language, which uses structured programming method. A C++ code can either be object-oriented, structured, or include both approaches.

Object Oriented and Structured programming are two vital programming approaches. The major difference between the two methods is that OOP constructs instructions using a group of objects while structured programming develops a program using a set of instructions. Some programming languages utilize both approaches when modeling and designing programs.

Reference

  • Urdhwareshe, A. (2016, August 1). Object-oriented programming and its concepts. Retrieved February 5, 2021, from http://www.issr-journals.org/links/papers.php?journal=ijisr&application=pdf&article=IJISR-15-338-03

Get high-quality help

img

Barry Silbert

imgVerified writer
Expert in:Information Science and Technology

4.7 (135 reviews)

I recently got 90% on the research paper these guys wrote. The writer was really intense and made sure it met guidelines required.


img +122 experts online

Learn the cost and time for your paper

- +

In addition to visual imagery, Cisneros also employs sensory imagery to enhance the reader's experience of the novel. Throughout the story

Remember! This is just a sample.

You can get your custom paper by one of our expert writers.

+122 experts online
img