Monday, November 3, 2014

Object Oriented Programming

 

Object oriented programming(OOP) is a programming paradigm(like aspect oriented,imperative, declarative , event driven).

Encapsulation: creates a boundary around an object to hide its iplementation details.
Inheritance:A class can inherit from another class to reuse its functionality instead of writing it from stratch.

Ploymorphism: a variable of type xcan refer to an object that subclasses x.

No comments: