previous |
start |
next
Object Variables
- Declare and optionally initialize:
Rectangle cerealBox = new Rectangle(5, 10, 20, 30);
Rectangle crispyCrunchy;
- Apply methods:
cerealBox.translate(15, 25);
- Share objects:
r = cerealBox;
previous |
start |
next