I have to create a lot of very similar classes which have just one method different between them. So I figured creating abstract class would be a good way to achieve this. B
You need an abstract method on your base class:
public abstract class BaseClass { public abstract void foo(); }
This way, you don't specify a default behavior and you force non-abstract classes inheriting from BaseClass to specify an implementation for foo.
BaseClass
foo