Tuesday, December 6, 2011

OOPS concept


if a problem is solve in terms of classes and object it is called object oriented programming . Java is a True object oriented programing

There are some terms that are used in OOPS
1) Class: A class is a collection of entities or we can say that a class proivdes definition for an object
2) Object : Object is an instance of the class
3) Properties : Characterstics or attributes of an object using which we can differentiate one object from another object
4) Methods: Operation that can be performed over an object


OOPS Concept

1. Abstraction : when a class is given to the user he is familiar only abstract view of the class internal detail and implementation are hidden from the rest of the user.
2. Encapsulation : The process of finding function and varible together within class body it is called encapsulation.
3 Polymorphism : if same message is pass to different object each object response differently depending upon its class it is called polymorphism, poly means many and morphism means forms. polymorphism are of two types . i) Compile Time/Static/early binding
          ii) RunTime/Dynamic/late binding

4 Inheritance : It is the process creating new classes from already existing classes, New classes can inherite the properties of the base class plus it can add its own additional functionality .

For More Details visit www.gurukpo.com



.