Friday, 22 July 2011

Dear students,
To have good understanding of Object Oriented Programming you must understand about Objects.
Object are real world entities or thing.

Objects:- An object Must have some properties and function associated to it. Forexample  If We take Human as an object then Any Human  should my properties like:- Age,Name,Color, Height-

Functions:- Are defined as Opertations which are made to define and assign some value to the properties of an object. Forexample if I define some function associated to Human Object then they may have some implementation like.
 setAge(int a){ Age=a;}
setName(String name){Name=name;}
setColor(String c){Color=c;}
setHeight(int h){Height=h;}

No comments:

Post a Comment