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)
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)
The data fields (“attributes”):
What can be done to that data(“methods”):
public void setLength (int iNewLength)
public void setWidth (int iNewWidth)
a Box, therefore, we get a unique copy to work with. This is one of the most powerful aspect of Object-Oriented Programming!