directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
Subject Re: Code review - constants in interface
Date Mon, 22 Nov 2010 16:35:26 GMT
On 11/22/10 5:09 PM, Hammond, Steven wrote:
> Maybe I am off, but I thought other classes already cannot inherit from it, because it
has a private constructor.
It does. But it's not convenient. That forces you to declare *all* the 
constructor private. If you miss one of them, then the class can be 
extended. Using 'final' as a qualifier for the class does protect the 
full class completely, even if the class evolve (AFAIU)

Emmanuel L├ęcharny

View raw message