@@ -0,0 +1,475 @@
+class Animal%7B%0A   public void move()%7B%0A      System.out.println(%22%E5%8A%A8%E7%89%A9%E5%8F%AF%E4%BB%A5%E7%A7%BB%E5%8A%A8%22);%0A   %7D%0A%7D%0A %0Aclass Dog extends Animal%7B%0A   public void move()%7B%0A      System.out.println(%22%E7%8B%97%E5%8F%AF%E4%BB%A5%E8%B7%91%E5%92%8C%E8%B5%B0%22);%0A   %7D%0A   public void bark()%7B%0A      System.out.println(%22%E7%8B%97%E5%8F%AF%E4%BB%A5%E5%90%A0%E5%8F%AB%22);%0A   %7D%0A%7D%0A %0Apublic class TestDog%7B%0A   public static void main(String args%5B%5D)%7B%0A      Animal a = new Animal(); // Animal %E5%AF%B9%E8%B1%A1%0A      Animal b = new Dog(); // Dog %E5%AF%B9%E8%B1%A1%0A %0A      a.move();// %E6%89%A7%E8%A1%8C Animal %E7%B1%BB%E7%9A%84%E6%96%B9%E6%B3%95%0A      b.move();//%E6%89%A7%E8%A1%8C Dog %E7%B1%BB%E7%9A%84%E6%96%B9%E6%B3%95%0A      //b.bark();%0A   %7D%0A%7D%0A

Add Java sample code