1 3 import java.io.*; 4 import org.ozoneDB.*; 5 6 7 public class BusImpl extends AutoImpl implements Bus, Externalizable { 8 9 13 final static long serialVersionUID = 1L; 14 15 int capacity = 12; 16 17 18 21 22 public String toString() { 23 return "Bus:" + name + ", " + String.valueOf( age ) + ", " + capacity; 25 } 26 27 28 public void writeExternal( ObjectOutput out ) throws IOException { 29 } 30 31 32 public synchronized void readExternal( ObjectInput in ) throws ClassNotFoundException , IOException { 33 } 34 } 35 | Popular Tags |