📄 test.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 + -