blob: 485f940da5fd17d7a54f8f754a68e38d95f3f612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using System;
class A {
public int foo = 1;
}
class B : A {
public new int foo ()
{
return 1;
}
static void Main ()
{
B b = new B ();
Console.WriteLine (b.foo ());
}
}
|