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
Just make the method abstract.
This will force all subclasses to implement it, even if it is implemented in a super class of the abstract class.
public abstract void foo();