projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* pie.cs: Made the output image little organized and added a
[mono.git]
/
mcs
/
tests
/
test-103.cs
1
//
2
// We should also allow overrides to work on protected methods.
3
// Only private is not considered part of the override process.
4
//
5
abstract class A {
6
protected abstract int Foo ();
7
}
8
9
class B : A {
10
protected override int Foo ()
11
{
12
return 0;
13
}
14
15
public int M ()
16
{
17
return Foo ();
18
}
19
}
20
21
class Test {
22
public static int Main ()
23
{
24
return new B ().M ();
25
}
26
}
27
28