Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13285
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Compilation ....cannot find symbol |
| Date | 2012-04-01 07:35 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <bqpgn7h18vkq63slnd7onl7ak99ub4qmk4@4ax.com> (permalink) |
| References | <4f774b5c$0$1390$4fafbaef@reader2.news.tin.it> |
On Sat, 31 Mar 2012 20:25:18 +0200, linus <linus@yahoo.com> wrote,
quoted or indirectly quoted someone who said :
> private Image ImagePanel(Image image ) {
> return this.image = image ;} }
that is not a constructor. Constructors don't return anything, even
void. You are confused between a static factory and a constructor.
See http://mindprod.com/jgloss/constructor.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
When you were a child, if you did your own experiment
to see if it was better to put to cocoa into your cup first
or the hot milk first, then you likely have the programmer gene..
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Compilation ....cannot find symbol linus <linus@yahoo.com> - 2012-03-31 20:25 +0200 Re: Compilation ....cannot find symbol Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-31 15:36 -0300 Re: Compilation ....cannot find symbol Donkey Hottie <donkey@fredriksson.dy.fi> - 2012-03-31 23:22 +0300 Re: Compilation ....cannot find symbol Roedy Green <see_website@mindprod.com.invalid> - 2012-04-01 07:35 -0700
csiph-web