PPT Slide
shoeBox
The data fields (“attributes”):
int iLength;
int iWidth;
int iHeight;
What can be done to that data(“methods”):
public void setLength (int iNewLength)
public int getLength ( )
public void setWidth (int iNewWidth)
public int getWidth ( )
public void setHeight (int iNewHeight)
public int getHeight ( )
public int getVolume ( )
(a reference
to an object
of class Box)
A closer look:
Objects and References
Previous slide
Next slide
Back to first slide
View graphic version