32 lines
275 B
C#
Raw Normal View History

using System;
public abstract class A
{
protected bool Test (int a)
{
return a == 5;
}
}
public class B : A
{
public void Test ()
{ }
class C : A
{
B b;
public bool Foo (int a)
{
return b.Test (a);
}
}
}
class X
{
public static void Main ()
{ }
}