作者在 2016-12-22 20:59:53 发布以下内容
package fuck;
public class Dog
{
public void jump()
{
System.out.println("jumping");
}
public void run()
{
// Dog d = new Dog();
// d.jump();
this.jump(); //等同于jump()
System.out.println("running");
}
}
package fuck;
public class TestDog
{
public static void main(String[] args)
{
Dog dog = new Dog();
dog.run();
}
}