abstract class with three virtual methods : Abstract Class « Class « C# / CSharp Tutorial






public abstract class MyOperations
{
    public virtual void Operation1() {
    }

    public virtual void Operation2() {
    }

    public virtual void Operation3() {
    }
}

public class MyClass : MyOperations
{
    public override void Operation1() { }
    public override void Operation2() { }
}

public class MainClass
{
    public void DoWork( MyOperations ops ) {
        ops.Operation3();
    }
}








7.27.Abstract Class
7.27.1.Using Abstract Classes
7.27.2.Create an abstract class.
7.27.3.Override abstract method
7.27.4.Polymorphism and Virtual Functions
7.27.5.Define abstract class and abstract method
7.27.6.abstract class with three virtual methods