directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
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)


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com


Mime
View raw message