If we are having Interface A,Interface B,Interface C and Class D where A,B,C are Base classes and D has extended the features of all the threeif A,B,C are having totally 5 methods and D has developed only 3 of them what will happen when we compile that program

Questions by sudheert

Showing Answers 1 - 2 of 2 Answers

Bhavya

  • Jun 1st, 2006
 

It won't get compile ,o/p as follows

 d is not abstract and does not override abstract method  which u won't override in class d .

Compulsory u need to override all methods otherwise declare d class as

abstract .

  Was this answer useful?  Yes

siva kumar reddy

  • Aug 10th, 2006
 

hi

in this case we will extend the features of a,b,c

1)implements three methods of interface and give the empty implementation for remaining two methods.

cheers

siva

  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