4
Answers

How we Implement 100 interface in a single class?

Pramod Verma

Pramod Verma

9y
414
1
How we Implement 100 interface in a single class?
Answers (4)
0
Pramod Verma
NA 303 33.3k 9y
Thanks
0
Francis
NA 11.7k 724.2k 9y

  I have given your answer but he was not agreed.

Really! :( . Please confirm with him what is the another way and post the answer here. :) AFAIK, the count of interface doesn't make the way different.

 
0
Pramod Verma
NA 303 33.3k 9y
Sir, This was Interview question. I have given your answer but he was not agreed.
0
Francis
NA 11.7k 724.2k 9y
How we Implement 100 interface in a single class?
 
Are you going to implement that much complex system? In another way this seems like a hypothetical question :).
 
Back to your question, the implementation must like a normal way like:
 
public class yourclassname : interface1, interface2 ..... ,interface100
 {
 
}
 
Also, I would suggest the below Stack overflow discussion about the discussion on this kind of similar problem and answered by the C# Compiler designer Eric Lipert:
 
http://stackoverflow.com/questions/4285584/how-many-interfaces-are-allowed-to-be-implemented 
 
Hope this helps!