Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: Enums: Properties vs. Methods Date: Tue, 29 Mar 2011 19:03:34 +0200 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <2f38bb8e-9a8d-4464-ad3d-b9ce0b557219@e21g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 Mar 2011 17:03:31 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="x1ayPUl1Dd83Eixaqp6srw"; logging-data="26935"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181g3ux/B7xNLAVVa2tY/W3" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <2f38bb8e-9a8d-4464-ad3d-b9ce0b557219@e21g2000yqe.googlegroups.com> Cancel-Lock: sha1:NdTrP8gTsaCU8wJ0fJccNxn/cN4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2554 On 29/03/2011 17:18, Robert Klemme allegedly wrote: > All, > > I am just musing about the pros and cons of using boolean properties > in enum classes vs. custom methods. > - when adding enum values to an enum you cannot forget to define > properties enum E { ; public *abstract* abstractMethod(); }