giovedì, gennaio 26, 2017

Singleton are effectively final

Singleton classes, if properly implemented, do not need to be declared final in order to not be extended. Since all the constructors of the singleton class are private, you can't extend that class. In fact, singleton classes are effectively final.

Nessun commento: