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

📄 test.java

📁 PracticalJAVACode 的源码
💻 JAVA
字号:
class Base
{
  public boolean equals(Object obj)
  {
    if (obj instanceof Base){}
    //...
    return true;
  }
}

class Derived extends Base
{}

class test
{
  public static void main(String args[])
  {
    Base b = new Base();
    Derived d = new Derived();
  //if (d.equals(b))  //Potentially true if Base attributes are equal
  //if (b.equals(d))  //Potentially true if Base attributes are equal
  //...
}   }

⌨️ 快捷键说明

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