Assignment Object Oriented Programming

Submitted by: Submitted by

Views: 566

Words: 887

Pages: 4

Category: Science and Technology

Date Submitted: 01/27/2013 11:14 AM

Report This Essay

Assignment: Object Oriented Programming Paper

IT/218

1/20/13

Object-oriented programming (OOP) is a method of programming which uses objects along with functions and procedures (TechTerms.com, 2007). Objects refer to an event or class that occurs within the program. These objects are formulated to use structures, classes, unions, inheritance, and polymorphism with each object representing a separate event. By using a modular structure of object-oriented programming, programs can be organized in a way that is easier to update by making needed changes to the pertinent modules only. Object-oriented programs are also easier to manage since they are written as blocks of code which can be tested independently to ensure that each function works correctly resulting in the desired outcome. The programmer can manage the code by working in smaller sections instead of reviewing the entire code as a whole.

Each module within an object-oriented program performs a specific function (Horton, 2010). Although modules are self-contained blocks of code, it is very important for these modules to be organized in a way that is logical and concise so the program can be executed and run without errors. Functions provide an advantage to programmers because they can be called and executed multiple times from any point in the program. This decreases the amount of code that needs to be written in the program.

Structures (structs) are used to store a single data type that contains the characteristics linked to that particular data type (Horton, 2010). The characteristics define the struct and are often referred to as members or fields of the structure. Once a struct had been defined, then variables can be declared to store the information pertaining to the variable which can be initialized with values.

While structs can be used to store a data type, they can be replaced by the use of classes which work with a more dynamic memory allocation. The use of classes requires a destructor...