Re: Compilation ....cannot find symbol

Discussion in 'Java' started by Roedy Green, Apr 1, 2012.

  1. Roedy Green

    Roedy Green Guest

    On Sat, 31 Mar 2012 20:25:18 +0200, linus <> 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..
     
    Roedy Green, Apr 1, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny
    Replies:
    1
    Views:
    4,693
    Andrew Thompson
    May 26, 2004
  2. Replies:
    5
    Views:
    6,617
    Tilman Bohn
    Dec 16, 2004
  3. Philipp Gressly
    Replies:
    2
    Views:
    3,230
    exquisitus
    Apr 18, 2005
  4. luch
    Replies:
    5
    Views:
    6,354
  5. Replies:
    6
    Views:
    1,888
Loading...

Share This Page