bus.java

来自「Java的面向对象数据库系统的源代码」· Java 代码 · 共 35 行

JAVA
35
字号
// $Id: Bus.java,v 1.3 2003/11/23 15:19:37 per_nyfelt Exp $package odmg;/** * @author <a href="http://www.softwarebuero.de/">SMB</a> * @version $Revision: 1.3 $Date: 2003/11/23 15:19:37 $ */public class Bus extends AutoImpl {        /**     * The serialization version id used by the Java serialization.     * See also the Java documentation.     */    final static long serialVersionUID = 1L;        protected int capacity = 12;            public Bus() throws Exception{        super();    }            public Bus( String name ) throws Exception{        super( name );    }            public String toString() {        // System.out.println ("toString()...");        return "Bus: name=" + name + ", age=" + String.valueOf( age ) + ", capacity=" + capacity;    }     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?