⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auto.java

📁 用Java写的面相对象的数据库管理系统
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.//// $Id: Auto.java,v 1.3 2000/10/28 16:55:20 daniela Exp $package org.ozoneDB.test.odmg;import org.ozoneDB.*;public class Auto extends OzoneObject {        protected String name = "Ford";        protected int age = 0;        protected Auto link;            public Auto( String _name ) throws Exception{        name = _name;    }            public boolean equals( Object obj ) {        Auto auto = (Auto)obj;        return name.equals( auto.name() );    }             public Auto doSomthing( Auto auto ) throws Exception {        System.out.println( "got: " + auto.toString() + " (" + auto.getClass().getName() + ")" );        return this;    }             public Auto setLink( Auto auto ) throws Exception {        // System.out.println ("setLink(): " + auto.toString() + " (" + auto.getClass().getName() + ")");        link = auto;        return this;    }             public void print() {        System.out.println( toString() );    }             public void setName( String newName ) {        name = newName;    }             public String name() {        return name;    }             public void setAge( Integer newAge ) {        age = newAge.intValue();    // throw new NullPointerException();    }             public int setAge( int newAge ) {        int ret = age;        age = newAge;        return age;    }             public Integer age() {        return new Integer( age );    }             public String toString() {        // System.out.println ("toString()...");        return "Auto:" + name + ", " + String.valueOf( age );    }             public void done() throws Exception {    // System.out.println (toString() + " done.");    }     }

⌨️ 快捷键说明

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