PPT Slide
The data fields (“attributes”):
What can be done to that data(“methods”):
public void setLength (int iNewLength)
public void setWidth (int iNewWidth)
public void setHeight (int iNewHeight)
(Cautionary Note: Here, we suggest that each object gets a unique copy of each method. Although each object is allocated unique memory space for variables, Java efficiently shares methods in common with all objects. For now, you might find it helpful to picture objects in the manner, even though it’s not technically what happens with the heap’s method space in the Java Virtual Machine.)