Saturday 15 October 2011

How to declare a pure virtual function in C# ?

Firstly, the class must always be declared abstract.
Secondly, the method must be declared abstract.
The following is a simple example of an abstract method:
abstract class AbstractClass
{
   public abstract void AbstractMethod();
}

No comments:

Post a Comment