Object-Oriented Programming: A Programming Language Model

Good Essays
Programming has been regarded as a logical procedure that “takes input data, processes it, and produces output data.” (Rouse, 2008, para 1) Three common examples of programming are object-oriented programming (OOP), event-driven programming (EDP), and procedural programming (PP). (Rouse, 2008) OOP is a programming language model defined by “objects” as opposed to "actions" and “data rather than logic.” (Rouse, 2008, para 1) EDP is a programming language model defined by reacting to user or processor actions such as keyboard strokes and mouse clicking to execute a command. (Rouse, 2012) PP is a programming language model defined by a chronological order of statements, tasks, and instructions to run a command. (ATK Solutions, Inc., 2015) There…show more content…
First, OOP consist of the programming code and data are encapsulated into “an object,” unlike PP where programming code is stored in a place in the system called a “function library” maintenance can be cumbersome. (ATK Solutions, Inc., 2015, para 4) Second, OOP entails information referred to as "class", "instance", "inheritance", and "polymorphism" that empowers the object to be flexible for reuse whereas PP is not as flexible due to its dedication to an itemized task. (ATK Solutions, Inc., 2015, para 5) Two examples of OOP in today’s programming world are Java and Ruby. (Rouse, 2008) Java is intended for use in dispersed applications on business networks and on the Internet. (Rouse, 2008) Ruby is intended for use broadly in Web applications. (Rouse, 2008) Both the OOP and PP programming language models are designed for a specific design outcome, but OOP is a more efficient approach for resource processing demand and time. (ATK Solutions, Inc.,…show more content…
(Wells, 2001) When compared to using PP, an advantage to using EDP that there is no need for a strict and chronological order of code for the flow of the program. (Wells, 2001) In EDP, the programming code entails an event-loop that idles until an event occurs to call on it. Next, the event then executes the appropriate event-handling routine until a protocol is met or a defined sentinel terminates it. (Wells, 2001) Two examples of EDP in today’s programming world are Visual Basic and Visual C++. (Wells, 2001) Both programming languages utilize an Integrated Development Environment (IDE) that delivers wide-ranging standard controls with each having its own “set of events and event-handler code templates.” (Wells, 2001, para 12) The IDE maintains of the flow of program execution by handling the scheduler and event queue. (Wells, 2001) As a result, the programmer is opened up to focus on the application specific code to allow it to react to a specific event, but does not need to know how to construct the actual objects. (Wells, 2001) EDP has fast-tracked as the result of the instituting of the Graphical User Interface (GUI) and has been commonly accepted for use in operating systems, as well as, client applications. (Wells,
Get Access