Thursday, October 28, 2010

How to call same method avaialble in two different interfaces and implemented in single class

I have the following two interfaces IDemo1 and IDemo2, which have the methods which same names PrintHello. DemoClass has implemented both these interfaces and has provided a separate implementation of both these methods. Now from main method, I want to call method of the appropriate interfaces:

 Output:


 
       

No comments:

Post a Comment