Sunday, May 3, 2015

What is Object-Oriented Programming ?

Object-oriented programming (OOP) is a programming language model organized around "OBJECTS" instead of "actions" and data rather than logic. In procedural programming language, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.


Everything in OOP is grouped as self sustainable "objects". The first step in OOP is to identify all the objects you want to manipulate and how they relate to each other, an exercise known as object orientation data modelling. To understand the object orientation model, consider your 'hand' as an example. The "Hand" is a class. "left hand" and "right hand" are two objects of type "hand". The "hand" class is reused to create the "left hand" and "right hand" by slightly changing it's properties. The methods of class provide computer instructions and class object characterstics provide relevant data. You communicate with objects, and they communicate with each other.

Important features of OOP are :
  • Classes and Objects
  • Inheritance
  • Abstraction
  • Encapsulation
  • Polymorphism

No comments :

Post a Comment

Threaded Minds would love to hear from you !!!