COMP2396
Loading...
Searching...
No Matches
BoxTestDrive Class Reference

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Definition at line 3 of file BoxTestDrive.java.

Member Function Documentation

◆ main()

static void BoxTestDrive.main ( String[] args)
inlinestatic

Definition at line 4 of file BoxTestDrive.java.

4 {
5 Box box = new Box();
6 box.setWidth(70);
7 box.setHeight(30);
8
9 try {
10 FileOutputStream fs = new FileOutputStream("Box.sav");
11 ObjectOutputStream os = new ObjectOutputStream(fs);
12 os.writeObject(box);
13 os.close();
14 } catch (Exception ex) {
15 ex.printStackTrace();
16 }
17 }
Definition Box.java:3
void setWidth(int w)
Definition Box.java:7
void setHeight(int h)
Definition Box.java:8

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