An Interface contains two methods a and b. If a Class C inherits the interface, is it necessary to define the two methods in Class C

  
Showing Answers 1 - 2 of 2 Answers

Renuka

  • Sep 23rd, 2007
 

Hi,

Yes, If the class C inherits the interface, it has to define methods in that interface bz the methods in the interface does n't have body so, what every methods and properties defined in the interface, the class inheriting the interface has to implement them.

Renuka

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions