5 protected virtual int Foo ()
10 protected delegate int FooDelegate ();
11 protected FooDelegate foo
;
15 foo
= new FooDelegate (Foo
);
25 protected override int Foo ()
35 public static void Main ()
38 int result
= y
.Hello ();
41 Console
.WriteLine ("OK");
43 Console
.WriteLine ("NOT OK");