summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0205.cs
blob: 7e8cef78abe9673e8a526d432f86d9839f642e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0205: Cannot call an abstract base member `A.Foobar()'
// Line: 21

using System;

public abstract class A
{
        public abstract void Foobar ();
}

public class B: A
{
        public override void Foobar ()
        {
                base.Foobar ();
        }

        static void Main ()
        {
                B b = new B ();
                b.Foobar ();
        }
}