1 9 package test.simple; 10 11 import java.io.Externalizable ; 12 import java.io.IOException ; 13 import java.io.ObjectInput ; 14 import java.io.ObjectOutput ; 15 16 17 public class BusImpl extends AutoImpl implements Bus, Externalizable { 18 19 23 final static long serialVersionUID = 1L; 24 25 int capacity = 12; 26 27 28 public BusImpl() { 29 } 30 31 32 public String toString() { 33 return "Bus:" + name + ", " + String.valueOf(age) + ", " + capacity; 34 } 35 36 37 public void writeExternal(ObjectOutput out) throws IOException { 38 } 39 40 41 public synchronized void readExternal(ObjectInput in) throws ClassNotFoundException , IOException { 42 } 43 } 44 | Popular Tags |