October 3rd, 2011
University of Phoenix
When trying to compare and contrast Procedural programming and object-oriented programming, a person must look at some of the functionality of each. 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. Object-oriented programming uses the methods and encapsulating them into an object which operates on its own data structure. When programming was first developed, it was mostly Procedural programming. Most procedural programs where designed to perform certain steps to achieve specific results. The larger these programs become, the more complex they become to support. 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 differences 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. It allows the objects to hide code that is outside of the object...