If a class is using an interface, it must

Options
- inherit the properties of the interface
- contain the same method definitions as the interface
- a and b


CORRECT ANSWER : a and b

Discussion Board
WRONG

You do not inherit properties from an interface, you IMPLEMENT them. Implement, not inherit. Therefore, the question is wrong.

Matthew 04-26-2016 02:58 PM

Bad choice of answers

Again, as stated above.

Shaun 08-13-2014 05:49 AM

Options are bad

The answers given are not framed properly.

Aravindan 07-8-2014 02:36 AM

Question is broken indeed

Yeah, badly worded and 'create an interface object' is meaningless. Should probably be 'a' and 'b' if 'a' was 'implement the properties...'.

Andrew Cope 10-26-2013 03:38 AM

Question is broken

This question is either wrong or worded poorly. An instance of an interface can not be created/instantiated. Not is it possible to inherit an interface, interfaces are implemented. It doesn't even sound correct to say that the class uses an interface or that it contains the same methods. The interface does not contain methods, it contains method definitions.

Sharon 09-20-2013 01:38 PM

what is "create an interface object"

what is "create an interface object" and why class must do it if the class is using an interface?

rotem 07-23-2013 06:09 PM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement