namespace for any of our classes that implement the interface as well as any of their subclasses.
But this is only true if some class implements the interface, but not if you directly use it like
CalculatorConstants.PI
Would using the above way also pollute the namespace?
You cannot avoid that somebody implements the interface. In my opinion, if you cannot avoid that, then the namespace could be polluted some day
Обсуждают сегодня