: Class Disk

Class Disk

java.lang.Object
  |
  +--Disk

public class Disk
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Disk(int units)
          inits a new disk with size units.
 
Method Summary
 int getSize()
          returns the size of the disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Disk

public Disk(int units)
inits a new disk with size units.
Parameters:
units - the size of the disk.
Method Detail

getSize

public int getSize()
returns the size of the disk.
Returns:
the size of the disk.