Wednesday, January 9, 2013

Class

In the real world,object have characteristics and behaviors .A car has a color,weight,manufacturer and gas tank of a certain volume.Those are its characteristics.A car can accelerate ,stop,signal for a turn,and sound the horn.


In OO technology, the characteristics of a class are known as its properties.Properties have a name and a value .Some allow their value to be changed;other do not.For example,in the Car class ,you would probably have such properties as color and weight .


No comments:

Post a Comment