However, interfaces can replace most of this capability. An interface is basically an abstract class but with all methods abstract . A class implements an interface rather than extends it. Any class that implements the interface must override all the interface methods with it's own methods. Any number of interfaces can be implemented.
Interface is a very suitable name.
Interfaces provide a systematic way of providing access to a class, i.e. they provide a common interface . A,B,C that are otherwise completely independent. The interface I therefore serves literally to interface otherwise incompatible classes together. Then in your other classes, you would refer to these constants with MyConstants. However, including the MyConstants class name wherever these constants are needed can be tedious and also makes the code less readable , especially in long formulas.