Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-13.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f921ae55728d0987fd646775e6364db3a72d3355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;

class Foo {

	public bool MyMethod ()
	{
		Console.WriteLine ("Base class method !");
		return true;
	}
}

class Blah : Foo {

	public static int Main ()
	{
		Blah k = new Blah ();

		Foo i = k;

		if (i.MyMethod ())
			return 0;
		else
			return 1;
			       

	}
	
}