Given:
public class Canvas implements Drawable {
public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas {
protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable {
public void resize () { }
}
public interface Drawable {
public abstract void draw ();
}
Which statement is true?
Board does not compile.
A.
Paper does not compile.
B.
Frame does not compile.
C.
Drawable does not compile.
D.
E. All classes compile successfully.
adnano1234
Highly Voted 5 years agoM_Jawad
Highly Voted 5 years agovidhuharu
Most Recent 3 months, 1 week agosteefaand
11 months, 1 week ago