Created
November 10, 2019 15:19
-
-
Save NeelBhatt/a5f0f66eb2a0642965998b7337151c65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
interface First | |
{ | |
void WritetoConsole() => Console.Write("In First"); | |
} | |
interface Second:First{ | |
void First.WritetoConsole()=>Console.Write("In Second"); | |
} | |
interface Third:First{ | |
void First.WritetoConsole()=>Console.Write("In Third"); | |
} | |
class FinalClass : Second,Third | |
{ | |
void First.WritetoConsole(){ | |
Console.Write("From Final class"); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment