Pbject Oriented Programing Essay example

877 Words Nov 12th, 2014 4 Pages
Object-oriented Programming (OOP) / Event-Driven Programming (EDP) versus Procedural Programming (PP)

Strayer University
CIS Computer Programing Design
Francis Straz
Dr. Kolta
03/15/14

In OOP, code and data are merged into one standard item, an object. An object is an abstraction of a set of real-world item. The object would contain all information and functionality for that item; ideally, information about a particular item should reside in only one place in a system. Programmer’s information within an object that is encapsulated from the rest of the Program. If a change is made in the object, it doesn’t mean that it also has to be changed throughout the program. It may not have to be changed. However, when we use Object
…show more content…
Sometimes reusing functions that do a specific task is more easily done with regular functions than it is when creating an object. If you are going to modify a function, the programmer should create a similar function with a different name. That way you know any reference to the function will remain intact. In OOP, everything is an object and must be programmed that way. If you want to do a series of things you will need to create an object for them. Sometimes building a sub-class off a class can become lengthy in coding and it calls you to add a lot of extra code to provide an additional task.
For example, if you create a website form to display a list of products, you can end up building a base form, a form for the display results and a database query form to load the items. This 3 different place you need to code to do one thing. This can cause a little more research when looking to make changes to the form down the road. In this case, how many times is the form going to be used? If only one time in one part of the program or website, then is it really necessary to create an Object?

There are many ways to program and although Object Orientated Programming is widely used, the programmer still has to do what is efficient time wise to the programming features. (Object Oriented Programming, 2014)
Object Oriented Programming. (2014, March). Retrieved from…

Related Documents