directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Code review - constants in interface
Date Mon, 22 Nov 2010 16:56:14 GMT
Emmanuel L├ęcharny <> wrote on 11/22/2010 11:52:18 AM:

> On 11/22/10 5:42 PM, Guillaume Nodet wrote:
> > For classes that are designed to export constants, there should be no
> > constructor at all, so even if you're right in theory, i don't think
> > that really apply here (as you're not supposed to add any constructor
> > to that class).
> But if the class is not declared as final, and has no constructor, then 
> it can be extended...

Indeed.  Any class with no declared constructor has a default, 
no-parameters constructor implicitly created by the compiler and can be 
extended unless the class is declared "final".

> -- 
> Regards,
> Cordialement,
> Emmanuel L├ęcharny

This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only
and may contain confidential and privileged information.  No one else may read, print, store,
copy, forward or act in reliance on it or its attachments.  If you are not the intended recipient,
please return this message to the sender and delete the message and any attachments from your
computer. Your cooperation is appreciated.

View raw message