Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Explicit Interface Examplle
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public interface IA { void FirstInterface(string x); } public interface IB { void FirstInterface(string x); } public class Program : IA,IB { IA.FirstInterface(string x) { console.writeline(x); } IB.FirstInterface(string x) { console.writeline(x); } public static void Main(string[] args) { IA obj = new Program(); obj.FirstInterface("This is Base Interface"); IB obj2 = new Program(); obj.FirstInterface("This is Second Interface"); } } }
run
|
edit
|
history
|
help
0
Immutable
gyakorlas
Free cash app money
ö2
Palindrome
lab
Kopia
12
2.10.4
calc