KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > car > BusImpl


1 package car;
2
3 // $Id: BusImpl.java,v 1.1 2003/11/08 16:32:24 per_nyfelt Exp $
4

5 import java.io.*;
6
7 public class BusImpl extends AutoImpl implements Bus, Externalizable {
8
9     /**
10      * The serialization version id used by the Java serialization.
11      * See also the Java documentation.
12      */

13     final static long serialVersionUID = 1L;
14
15     int capacity = 12;
16
17
18     public BusImpl() {
19         super("bus", 23);
20     }
21
22
23     public String JavaDoc toString() {
24         // System.out.println ("toString()...");
25
return "car.Bus:" + name + ", " + String.valueOf( age ) + ", " + capacity;
26     }
27
28
29     public void writeExternal( ObjectOutput out ) throws IOException {
30     }
31
32
33     public synchronized void readExternal( ObjectInput in ) throws ClassNotFoundException JavaDoc, IOException {
34     }
35 }
36
Popular Tags