a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
615 B
C#
24 lines
615 B
C#
using System;
|
|
|
|
class Test {
|
|
public static int Main() {
|
|
Console.WriteLine("test");
|
|
TestClass tst = new TestClass();
|
|
tst.test("test");
|
|
TestInterface ti = (TestInterface)tst;
|
|
ti.test("test");
|
|
return 0;
|
|
}
|
|
|
|
public interface TestInterface {
|
|
string test(string name);
|
|
}
|
|
|
|
public class TestClass: TestInterface {
|
|
public string test(string name) {
|
|
Console.WriteLine("test2");
|
|
return name + " testar";
|
|
}
|
|
}
|
|
}
|