COMP2396
Loading...
Searching...
No Matches
Box Class Reference
Inheritance diagram for Box:
Collaboration diagram for Box:

Public Member Functions

int getHeight ()
 
int getWidth ()
 
void setHeight (int h)
 
void setWidth (int w)
 

Private Attributes

int height
 
int width
 

Static Private Attributes

static final long serialVersionUID = 2396L
 

Detailed Description

Definition at line 3 of file Box.java.

Member Function Documentation

◆ getHeight()

int Box.getHeight ( )
inline

Definition at line 11 of file Box.java.

11{ return height; }
int height
Definition Box.java:6

References height.

◆ getWidth()

int Box.getWidth ( )
inline

Definition at line 10 of file Box.java.

10{ return width; }
int width
Definition Box.java:5

References width.

◆ setHeight()

void Box.setHeight ( int h)
inline

Definition at line 8 of file Box.java.

8{ height = h; }

References height.

◆ setWidth()

void Box.setWidth ( int w)
inline

Definition at line 7 of file Box.java.

7{ width = w; }

References width.

Member Data Documentation

◆ height

int Box.height
private

Definition at line 6 of file Box.java.

Referenced by getHeight(), and setHeight().

◆ serialVersionUID

final long Box.serialVersionUID = 2396L
staticprivate

Definition at line 4 of file Box.java.

◆ width

int Box.width
private

Definition at line 5 of file Box.java.

Referenced by getWidth(), and setWidth().


The documentation for this class was generated from the following file: