Which is the correct implementation?

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?
A . Public class DrawList implements Sortable, Implements Drawable {
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
]
B . Public class DrawList extends Sortable, Drawable {
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
}
C . Public class DrawList implements Sortable, Drawable {
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
}

D . Public class DrawList extends Sortable, extends Sortable, extends Drawable {
public void sort() { /*implementation*/ }
public void draw() { /* implementation */}

Answer: C

Latest CRT-450 Practice Questions with 372 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments