Use an abstract class and an abstract method.