publicabstractclassTest{//抽象类定义 publicabstractvoiddoItByHand();//抽象方法定义 }//源代码片段来自云代码http://yuncode.net public abstract class Drawing { public abstract void drawDot(int x, int y); public void drawLine(int x1, int y1, int x2, int y2) { // draw using the drawDot() method repeatedly. } }//源代码片段来自云代码http://yuncode.net