/*
Demo d1 = new Demo();
Demo d2 = new Demo();
d1.getClass() == d2.getClass();
*/
class Demo //extends Object
{
public String toString()
{
this.getClass().getName()+"#"+Integer.toHexString(this.hashCode());
}
}
class Fu
{
void show(){System.out.println("fu show");}
}
class Zi extends Fu
{
void function()
{
super.show();
//this.show();
}
void show(){System.out.println("zi show");}
}
/*
class Computer
{
private MainBoard mb;
Computer()
{
mb = new MainBoard();
}
public void play()
{
mb.run();
}
}作者: 耀阳圣尊 时间: 2015-10-22 10:58
总结的不错,赞一个{:3_53:}