Programming Fundamentals Paper

Submitted by: Submitted by

Views: 121

Words: 974

Pages: 4

Category: Science and Technology

Date Submitted: 06/01/2014 05:46 AM

Report This Essay

Compares and contrasts procedural programming modules and objects.

When trying to compare and contrast Procedural programming and object-oriented programming, a person must look at some of the functionality of each.

Object oriented programming uses a class concept where items manipulated or objects derived from a class. There objects have inherent properties and methods for use. They can be inherited into supersets.

Procedural programming uses methods and functions to carry out the steps of the program while using data structures. These functions or methods are usually called upon within the program in a set order but can be called by any computational function.

Procedural programming is also very time consuming to update and maintain. Since each step in the program is its own method, when something needs to be updated or changed, it has to be changed in many locations. Object-oriented programming allows for inheritance, which makes changes faster and easier as only the parent class needs to be updated and all the child classes will automatically be updated as a cascade affect. One major difference between procedural programming and object-oriented programming is the reusability of code. In procedural programming, the functions or methods are independent of each other. A module can't be used for two different functions even if they are similar. In Object-oriented programming, a module can be used in many different locations within the program. These modules can be accessed by the program many times during an operation. Another difference between the two programming types is the hiding of code. The hiding of code is one of the fundamentals of Object-oriented programming.

Reusability of Code

Procedural programming modules and objects are similar in that they use most of the same commands to execute their functions and store their data but also are very different. Procedural modules are easier to use for small specific programs that perform specialized...