Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0205.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52c18960321df8fe5847c4b6345b4bc2d95a2341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// cs0205: can not call abstract base method
//
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 ();
        }
}