crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Implement two interface with same function define in them
Question Posted on 14 Dec 2011Home >> DotNet >> C# >> Implement two interface with same function define in them

Below is the example how to handle two interface same implementation in the class
(1)Fist Interface declartion
 interface Intface1
 {
     void intFunction();
 }

(2)Second Interface Declartion
 interface Intface2
 {
     void intFunciton();
 }

(3)Class that call both interface in it
 class myClass: Intface1, Intface2
 {
   public void Intface1.intFunction()
   {
     // code here functionality for intFunciton of interface Intface1
   }
   public void Intface2.intFunction()
   {
    // code here functionality for intFunciton of interface Intface2
   }
 }
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Simplest definition of partial classes and its rules?

Definition of Tuple class with some examples?

Define Race Condition in cSharp?

C#.Net Reserve Words

can we inherit private class level variables in c#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap