Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34868
| From | Roedy Green <inquiry@mindprod.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: enum syntax |
| Date | 2016-07-12 04:35 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <h6l9obtf06d2tp8kf4c6u13a2bevmlsfgh@4ax.com> (permalink) |
| References | <ngmdhi$ics$1@reader1.panix.com> <ngmfvn$1da$1@dont-email.me> |
On Sat, 7 May 2016 21:43:54 -0700, Knute Johnson
<nospam@rabbitbrush.frazmtn.com> wrote:
>> How is there no closing paran and a method included as an enum entry?
I don't see a method attached to an enun constant, though it is a
techquique I use all the time.
for instance in an enum of bookstores, I have a method to compose a
probe to that store. It overrides an abstract method common to all
enums. If I say bookstore.probe() is selects the correct version.
I don't see any () or {} unbalanced. I am notoriously bad at
proofreading them. Where are they?
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
enum syntax ruben safir <ruben@mrbrklyn.com> - 2016-05-07 23:58 -0400
Re: enum syntax Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-05-07 21:43 -0700
Re: enum syntax Roedy Green <inquiry@mindprod.com> - 2016-07-12 04:35 -0700
Re: enum syntax Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-08 07:22 -0400
Re: enum syntax Roedy Green <see_website@mindprod.com.invalid> - 2016-05-20 18:01 -0700
csiph-web