Programming Fundamentals

Topics: Object-oriented programming, Programming language, Java Pages: 2 (588 words) Published: April 9, 2012
Programming Fundamentals
Programming Fundamentals
October 3rd, 2011
University of Phoenix

Programming Fundamentals
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...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Programming paradigms Essay
  • Traditional vs Oo Programming Essay
  • Object Oriented Programming Essay
  • Object-oriented Programming and Discussion Question Essay
  • Object Oriented Programming Essay
  • Define and Contrast Structured Programming Against Object-Oriented Programming Essay
  • Intro to Programming Essay
  • Objected Oriented Programming Paper

Become a StudyMode Member

Sign Up - It's Free