I have an abstract class, for which I want all subclasses to define a constant, based on the implementation- it is mainly metadata about the class implementation.
In the superclass:
protected static final String OBJECT_NAME;
protected static final String OBJECT_DEF;
And then in the subclass:
protected static final String OBJECT_NAME = "awesome class";
protected static final String OBJECT_DEF = "an awesome class that is also great";
Is there a way to force implementations of a class to declare a constant?