COMP2396
Loading...
Searching...
No Matches
Box.java
Go to the documentation of this file.
1
import
java.io.*;
2
3
public
class
Box
implements
Serializable
{
4
private
static
final
long
serialVersionUID
= 2396L;
5
private
int
width
;
6
private
int
height
;
7
public
void
setWidth
(
int
w) {
width
= w; }
8
public
void
setHeight
(
int
h) {
height
= h; }
9
10
public
int
getWidth
() {
return
width
; }
11
public
int
getHeight
() {
return
height
; }
12
}
Box
Definition
Box.java:3
Box.getWidth
int getWidth()
Definition
Box.java:10
Box.setWidth
void setWidth(int w)
Definition
Box.java:7
Box.width
int width
Definition
Box.java:5
Box.setHeight
void setHeight(int h)
Definition
Box.java:8
Box.getHeight
int getHeight()
Definition
Box.java:11
Box.serialVersionUID
static final long serialVersionUID
Definition
Box.java:4
Box.height
int height
Definition
Box.java:6
Serializable
chapter10
Box.java
Generated on Sat Dec 7 2024 17:10:09 for COMP2396 by
1.12.0