BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Monday, December 12, 2011

Object Oriented Programming

Object Oriented Programming is a technique used to solve real world problems by using the concept of Encapsulation,Data Hiding,Inheritance and Polymorphism etc.

Depending upon the feature,the language can be classified into the following two categories

1)Object Based Programming Language.

2)Object Oriented Programming Language.

Object Based Programming Languages:

*Data encapsulation.

*Data hiding and access mechanism.

*Automatic initialization and clear up of object.

*Operator overloading.

*Languages that support programming with objects are said to be object based programming languages.They do not support inheritance and dynamic binding.

Example : Ada and Javascript

Wednesday, December 7, 2011

Object oriented programming paradigm

*The fundamental idea behind OOP is to combine both data and functions that operate on that data into a single unit.Such a unit is called an object.

*A OOP program consists of a number of objects.The data of an object can be accessed by the function associated with that objects.

Features of OOP:-

*Emphasis is on data rather than procedure.

*Programs are divided into as objects.

*Data is hidden and cannot be accessed by the external function.

*Object may communicate with each other through function.

*New data and functions can be easily added whenever necessary.

*Program design is bottom-to-top approach.