Topic: 1z0-809 topic 1 question 78

Given:
interface Doable {
public void doSomething (String s);
}
Which two class definitions compile? (Choose two.)

A.
public class Task implements Doable { public void doSomethingElse(String s)    {  } }
B.
public abstract class Work implements Doable { public abstract void doSomething(String s)    {  } public void doYourThing(Boolean b)    {  } }
C.
public abstract class Job implements Doable { public void doSomething(Integer i)    {  } }
D.
public class Action implements Doable { public void doSomething(Integer i)    {  } public String doThis(Integer j)    {  } }
E.
public class Do implements Doable { public void doSomething(Integer i)    {  } public void doSomething(String s)    {  } public void doThat (String s)    {  } }

Re: 1z0-809 topic 1 question 78

Answer is CE,

Option A implements doSomethingElse(String s) instead doSomething(String s).
Option C abstract method allowed not to implement functions methods

Re: 1z0-809 topic 1 question 78

* Option C, abstract method allowed not to implement interface methods

Re: 1z0-809 topic 1 question 78

CE is correct

Re: 1z0-809 topic 1 question 78

C and E is the correct answwer

Re: 1z0-809 topic 1 question 78

Answer C and E. A doesn't compile since method name is doSomethingElse and not doSomething. B isn't ok since doSomething is defined as abstract but provides implementation.

Re: 1z0-809 topic 1 question 78

Answer is CE.

Re: 1z0-809 topic 1 question 78

Answer is A & E

Re: 1z0-809 topic 1 question 78

Concrete class on A does not provide implementation for doSothing(String s)

Re: 1z0-809 topic 1 question 78

C,E tested

Re: 1z0-809 topic 1 question 78

C,E,tested.

Re: 1z0-809 topic 1 question 78

A,E is the correct Option

Re: 1z0-809 topic 1 question 78

Answer is AE