KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > odmg > Bus


1 // $Id: Bus.java,v 1.3 2003/11/23 15:19:37 per_nyfelt Exp $
2
package odmg;
3
4 /**
5  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
6  * @version $Revision: 1.3 $Date: 2003/11/23 15:19:37 $
7  */

8 public class Bus extends AutoImpl {
9     
10     /**
11      * The serialization version id used by the Java serialization.
12      * See also the Java documentation.
13      */

14     final static long serialVersionUID = 1L;
15     
16     protected int capacity = 12;
17     
18     
19     public Bus() throws Exception JavaDoc{
20         super();
21     }
22     
23     
24     public Bus( String JavaDoc name ) throws Exception JavaDoc{
25         super( name );
26     }
27     
28     
29     public String JavaDoc toString() {
30         // System.out.println ("toString()...");
31
return "Bus: name=" + name + ", age=" + String.valueOf( age ) + ", capacity=" + capacity;
32     }
33     
34 }
35
Popular Tags