Popular Posts

Get widget

Monday 11 February 2013

OOPS Funda

Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. Programming techniques may include features such as abstraction, encapsulation, inheritance, and polymorphism. In this article I will try to descibe each one of them.


In order to understand this article, you should know basics concepts of an object, class.  Lets see what are they.
Object
Basically an object is anything that is identifiable as an single material item. You can see around and find many objects like Camera, Monitor, Laptop etc. In OOP perspective, an object is nothing but an instance of a class that contains real values instead of variables
Class
A class is a template definition of the methods and variables for a particular kind of object. In other words, class is the blue print from which an individual objects are created.

What is OOP? 

  • To hendle the complexity of program oop is introduce.
  • OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, you gain re-usability by means of four main object-oriented programming concepts.
Encapsulation:
 -Wrapping up of data.
- that keeps both safe from outside interface and misuse.
Polymorphism:
- "one interface, multiple method."
Inheritance
- is the process by which one object can acquire the properties of another object.

0 comments:

Post a Comment