B
bernhn
Unregistered / Unconfirmed
GUEST, unregistred user!
public class Demo {
public static void main(String[] args) {
myclass mc=new myclass();
}
}
abstract class Graphics {
public abstract void drawLine(int x1,int y1,int x2,int y2);
public abstract void drawOval(int x,int y,int width,int height);
public abstract void drawRect(int x,int y,int width,int height);
}
public class myclass extends Graphics {
public void drawLine(int x1,int y1,int x2,int y2) {
x1=10;
y1=12;
x2=13;
y2=14;
//drawLine=x1+x2+y1+y2;
return;
}
}
public static void main(String[] args) {
myclass mc=new myclass();
}
}
abstract class Graphics {
public abstract void drawLine(int x1,int y1,int x2,int y2);
public abstract void drawOval(int x,int y,int width,int height);
public abstract void drawRect(int x,int y,int width,int height);
}
public class myclass extends Graphics {
public void drawLine(int x1,int y1,int x2,int y2) {
x1=10;
y1=12;
x2=13;
y2=14;
//drawLine=x1+x2+y1+y2;
return;
}
}