Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Interface With Ambiguity Problem
//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 { interface Iinterface1 { int Show(int a, int b); } interface Iinterface2 { int Show(int a, int b); } public class Class: Iinterface1,Iinterface2 { int Iinterface1.Show(int a, int b) { Console.WriteLine(a+b); return a+b; } int Iinterface2.Show(int a, int b) { Console.WriteLine(a*b); return a*b; } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); Class c=new Class(); Iinterface1 i1=c; Iinterface2 i2=c; i1.Show(50,30); i2.Show(20,5); } } }
run
|
edit
|
history
|
help
0
Fff
Reflection 2
Reference Type parameter by Ref vs. Normal
cup tournament prediction
save bitmap from stream problem
n th to last element
expresiones switch
Half Sum
abebe
Prueba