java4all@1986 java. Powered by Blogger.

What are the oops concepts?

>> Monday, June 27, 2011

OOP means Object Oriented Programming.
This is a technique used to create programs around the real world entities.
In OOPs programming model, programs are developed around objects and data rather than actions and logics.
In OOPs, every real life object has properties and behavior. This feature is achieved in java through the class and object creation.
They contains properties (variables of some type) and behavior (methods).
OOPs provides better flexibility and compatibility for developing large applications.

Class:A class defines the properties and behavior (variables and methods) that is shared by all its objects.
It is a blue print for the creation of  objects.

Object:Object is the basic entity of object oriented programming language.
Class itself does nothing but the real functionality is achieved through their objects.
Object is an instance of the class. It takes the properties (variables) and uses the behavior (methods) defined in the class.

Encapsulation,Abstraction,Inheritance and Polymorphism are main pillars of OOPs. These have been described below :

0 comments:

Post a Comment

FaceBook Login

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

Total Pageviews

STATCOUNTER

  © Blogger template Simple n' Sweet by Ourblogtemplates.com 2009

Back to TOP