p

Saturday, 29 October 2011

Some Important Concept of Object Oriented Programming

Object-oriented programming:

Object-oriented programming (OOP) is a programming pattern using objects and data structures consisting of data fields and methods together with their connections to design applications and computer programs. In this programming pattern programmers define not only the data type of a data structure, but also the types of operations that can be applied to the data structure. Some important topics of OOP are given bellow:

Inheritance:

In object-oriented programming (OOP), inheritance is a way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects.
Polymorphism:
Polymorphism is the ability to create a variable, a function, or an object that has more than one form.
Encapsulation:
In Object Oriented Programming, encapsulation is an attribute of object design. It means that all of the object’s data is contained and hidden in the object and access to it restricted to members of that class.

Abstraction:

Abstraction is a concept or idea not associated with any specific instance. It’s acts as super-categorical noun for all subordinate concepts, and connects any related concepts as a group, field, or category.
Hierarchy:
Hierarchy is an arrangement of items e.g. objects, names, values, categories, etc. More shortly it’s tree like structure.