Sunday, 26 January 2014

Object-Oriented Programming

Object-Oriented Programming, as the name says, is a type of programming revolving around an object. The object is the data structure of the program itself. This type of programming enables the user to not only define the data type of the structure, but also the types of operations that can be applied
to the data structure. A connection between several objects can also be created; this is called inheritance. Thus, many objects can inherit characteristics from other objects.

The advantages of OOP are listed below:
1. Creation of modules that do not need to be changed when a new type of object is added. The programmer only need to create a new object that inherits the features of the existing objects.

2. Because of the modularity of the program, its software is easier to maintain. In case of issues, only
part of the system need to be updated instead of making large-scale changes.

3. More efficient since new objects can inherit characteristics from older ones.


Finally, here are some disadvantages:
1. Object-oriented programs usually involve more lines of code. More lines of code mean larger program size and more complex programs.

2. Because of the large number of lines of code, object-oriented programs are slow as more instructions have to be executed.