Friday, 6 January 2012

OOPs concepts....

Object Oriented Programming- OOP represents an attempt to make programs more closely model the people think about and deal with the world.

Object- An object is a software bundle of variables and related methods.

OOPs Concept-
1.Encapsulation- Packaging an object variables within the protective custody of its methods is called Encapsulation.Encapsulation provides following benefits:
a. Modularity


Abstraction-Abstraction is nothing but only showing functionality and hide complexity.In philosophical terminology abstraction is the thought process wherein Ideas are distanced from objects.In computer science, abstraction is a mechanism and practice to reduce and factor out details so that one can focus on few concepts at a time.In Java, Abstraction is achieved  by two ways:
a.Abstract Classes.

Polymorphism- It is nothing but one name multiple form. Behavior of a function differently at different situation is called polymorphism.for Example our behavior change at different situations.It can be achieved by two ways:



No comments:

Post a Comment