Which class correctly uses the Data interface and Info class?

Given:

10. interface Data { public void load(); }
11. abstract class Info { public abstract void load(); }

Which class correctly uses the Data interface and Info class?

Given:

10. interface Data { public void load(); }
11. abstract class Info { public abstract void load(); }

Which class correctly uses the Data interface and Info class?

A.
public class Employee extends Info implements Data {
public void load() { /*do something*/ }
}

B.
public class Employee implements Info extends Data {
public void load() { /*do something*/ }
}

C.
public class Employee extends Info implements Data {
public void load(){ /*do something*/ }
public void Info.load(){ /*do something*/ }
}

D.
public class Employee implements Info extends Data {
public void Data.load(){ /*do something*/ }
public void load(){ /*do something*/ }
}

E.
public class Employee implements Info extends Data {
public void load(){ /*do something*/ }
public void Info.load(){ /*do something*/ }
}

F.
public class Employee extends Info implements Data{
public void Data.load() { /*do something*/ }
public void Info.load() { /*do something*/ }
}



Leave a Reply 0

Your email address will not be published. Required fields are marked *