Procedural Versus Object-Oriented Programming (Oop) Essay

702 WordsMar 29, 20133 Pages
Introduction There are programming models a programmer use to build start a new project, but the way they plan and build the project can differ from project to project. There isn’t a clear programming model to use for every project. Procedural Programming and Object-Oriented Programming are the primary programming models in the programming world. As we discuss both programming models we will discover their differences and similarities. Procedural Programming Procedural programming is a linear form of programming. What this means is when the programmer wrote the code they did it in a manner that follows a step by step approach. I like to think of procedural programming as a ladder. Each rung of the ladder represents a completed step in the program. When a file is executed by the user it will start at the top of the ladder and work its way down one rung at a time until it has completely finished running. According to Benjamin, “If you're just starting out, chances are that you are programming in a procedural manner.” (Kuker, 2009) Object-Oriented Programming (OOP) OOP makes larger programs more manageable by dividing the data into individual objects. If you were to take several tasks that work together they would form a class. A method is considered to be an individual function or property that is nested inside of the class. The ability of “inheritance is one of the primary concepts of object-oriented programming” which distributes data from a parent class to the child class. (Gillford & Camden, 2010) Inheriting data from individual objects and classes will save the programmer the tedious task of having to repeat coding for every object that is similar. Procedural verus OOP A programmer should consider several things when deciding to pick a model that will best suit the project. To start this process you need to ask yourself several questions; is the

More about Procedural Versus Object-Oriented Programming (Oop) Essay

Open Document