A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?
- Public class DrawList implements Sortable, Implements Drawable { public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
] - Public class DrawList extends Sortable, Drawable {
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
} - Public class DrawList implements Sortable, Drawable { public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
} - Public class DrawList extends Sortable, extends Sortable, extends Drawable { public void sort() { /*implementation*/ }
public void draw() { /* implementation */}
Reveal Solution Next Question