Output:
This blog is for sharing various Microsoft .Net interview questions and answers and discussions related to the various technical topics on Microsoft .Net technologies like C#.Net, VB.Net, ASP.Net, WCF, WPF, WF, LINQ, SSIS, SSRS, HTML, Java Script, AJAX, JQuery etc.
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:
Output:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment