Reusability of Codes

Submitted by: Submitted by

Views: 166

Words: 815

Pages: 4

Category: Other Topics

Date Submitted: 02/10/2014 08:40 AM

Report This Essay

The focus of procedural programming is to break down a programming task into a collection of variables, data structures, and subroutines, whereas in object-oriented programming it is to break down a programming task into objects that expose behavior (methods) and data (members or attributes) using interfaces. The most important distinction is that while procedural programming uses procedures to operate on data structures, object-oriented programming bundles the two together, so an "object", which is an instance of a class, operates on its "own" data structure. Procedural programming uses different methods throughout the code than Object-oriented programming. As an example Object-oriented programming uses methods where Procedural programming uses procedures. Object-oriented programming uses objects where Procedural programming uses records. Object-oriented programming uses classes where Procedural programming uses modules and Object-oriented programming uses messages where Procedural programming uses procedure calls. In addition Object-oriented programming uses data fields where Procedural programming uses procedures. Reusability of code's general purpose is to reduce unnecessary coding which in the end reduces project development time and funds. It is essentially taking code from one part of a program and attempting to employ it elsewhere without having to alter too much. This method is similar to reusing software mechanisms in object-oriented programming. Reusing program modules is one of the most direct and useful ways to develop cost effective software, especially with the availability of huge amounts of open-source projects. Reuse saves cost, increases the speed of development and improves software reliability. The quality of popular open-source packages is good as shown by various empirical studies. Protecting computer systems from virulent codes will help stop accidental or intentional compromising of information. With procedural programming data is exposed...