Procedural Vs Object-Oriented Programming essay

ProceduralVs Object-Oriented Programming

ProceduralVs Object-Oriented Programming

ProceduralProgramming and Object-Oriented Programming (OOP) are the mainalternative approaches to the process of programming. However, thetwo have some differences. According to Eliason(2016),procedural programming, also known as imperative programming, uses aset of instructions to command the computer on how to carry out atask systematically. It relies on “guess it” procedure, calledroutines and subroutines. Each procedure has computational steps thatthe computer has to perform. Procedural programming is intuitivebecause the programmer is aware of how the program works. That is, ifthe programmer wants to perform a certain task, then, he or sheshould provide the machine with step-by-step instructions on how toperform it. This explains why the early programming languages wereprocedural. FORTRAN and COBOL are examples of procedural languagesused in the 1960s and 1970s. Restaurants and supermarkets use thisprograms whereby their clients just select the items they need on thescreen.

Onthe other hand, Object-Oriented Programming (OOP) uses objects andclasses as a problem-solving approach. An object is a programcomponent that interacts with other programs to perform a certaintask (Eliason,2016).The programmer is a good example of an object. C++ and JAVA are goodexamples of OOP. In a real-life, OOP is applicable in theconstruction of an office building. Objects to consider includeelectricity, plumbing, paint, interior and exterior-construction,flooring, interior design, and many others. Correspondingly, anobject like the paint can further be divided into colors, patterns,type of paint for specific rooms and hallways, among others. In theend, despite the complicated objects interaction, it is possible toconstruct an entire building. For my case, I prefer OOP because it iseasy to maintain it, and it does not consume much time.

References

Eliason,K. (2016). Difference Between Object Oriented and ProceduralProgramming. Retrieved June 11, 2016, fromhttps://neonbrand.com/website-design/procedural-programming-vs-object-oriented-programming-a-review/