Oct 19, 2010


Object oriented programming (OOP) is the most dramatic invocation in the software development in the last decade.
Advantages of Object Oriented Programming
The chief problem with computer program is complexity. Large programs are probably in the most complicated entities ever created by humans. Because of this complexity, programs are prone to error, and software errors can be expensive and even life threatening. Object oriented programming others a new and powerful way to copy with this complexity.lts goal is cleared, more reliable, more easily maintained programs.
The fundamental idea behind object--oriented languages is to compile into a single unit both the data and the function that operate on the data. Such a unit is called an OBJECT.Modern trend in programming result in making in the code cover all possible aspects of the field making the program organization hug enough.ln these situations the procedural language approach starts to show signs of the strains. That's because the stress is on doing things. The data structures and the data are given secondary importance.
Giving the primary importance to data structures and data integrity preserves OOP techniques resolves this problem by giving the primary importance to structures and data integrity.An object oriented program would consist of a number of objects, which communicates with each other by calling one anther's member functions.
Some of the elements of OOP are:-
Dividing with into objects solves a problem,which results in a close reemblence between the objects in programming sense and objects in the programming sense and
objects in the real world.

A class serves as a part of template for the data and function which will be included in the objects of the class.

3.Encapsulation & Abstraction
Encapsulation is the phenomenon of binding the data members and the functions, which operate on that data in a unit thereby `encapsulating' them. Abstraction is the phenomenon by which the access to a data is restricted making it saving from unintentional manipulation.

Inheritance is the process of deriving new classes from an existing base class.Here the derived classes not only inherits the capabilities of the base class but add refinement of its own.

* Inheritance is the most powerful) features of OOP after the classes themselves.
* It is the process of creating classes called derived classes from existing or base ...classes.
* The derived class inherits all the capabilities of the base class and can add
...refinements or embellishment of its own leaving the base class unchanged.
* One of the mot important features of inheritance is that it permits the code ...reusability.
* Reusability saves time, code, money, maintenance and helps preserve integrity and ...results in the case of distributing class libraries.

5. Multiple Inheritance
It is a phenomenon whereby derived can be made to inherit the capabilities of several base classes, that is, it can be derived from multiple base classes if a member function belonging to the base class, need to be invoked and function with the same exists in the derived class, then the ambiguity can be resolved by the use of the operator known as scope resolution operator (::).

6.Operator Overloading
It is very exciting feature of OOP them can transform increasingly complex obscure program listing into intuitively obvious ones. In fact, it empowers the programmers to create a completely new language of its own.

7.Polymorphysm & Overloading
Polymorphism is the concept of using primitive arithmetic operators such as +, -,==, etc in different ways depending on what they are operating on. When an existing operator such as +,- etc is given capability to operate on a datatype,it is said to overloaded, which is one of the forms of polymorphism.

Once a class has been written, created and debugged it can be distributed to other programmers without changing its initial code.This feature is called reusability.