Skip to content

Abstract Classes

Mario Gutierrez edited this page Jan 8, 2017 · 4 revisions

How to define an abstract class with an abstract method:

abstract class MyAbstractClass
{
  public abstract void AbstractMethod();
}

How to do the concrete implementation (extend the abstract class and override abstract methods):

class ConcreteImplementation : MyAbstractClass
{
  public override void AbstractMethod() { /* ... */ }
}
Clone this wiki locally