Search:

Type: Posts; User: Voodoo

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,575

    Re: Why doesnt my constructor work?

    Man, still playing a sniffy schoolmarm,
    why should I have to calm down when I'm not "angry"? It's your verbal language that makes you thinking that people are angry. You read something and decide to...
  2. Replies
    13
    Views
    1,575

    Re: Why doesnt my constructor work?

    Aha,
    firstColour = new Color(red1, green1, blue1); is BEFORE red1 = i, etc. That is, my dear schoolmarm !
    Or should I call you an uber-schoolteacher? I never intend to write a java book. My answer...
  3. Replies
    13
    Views
    1,575

    Re: Why doesnt my constructor work?

    Special for veeer,


    int red1;
    int green1;
    int blue1;

    int red2 = 99;
    int green2 = 182;
    int blue2 = 222;
  4. Replies
    13
    Views
    1,575

    Re: Why doesnt my constructor work?

    Wenn Du nichts verstehst, kannst Du beim Admin beschweren. If you don't understand you can complain at the admin.
  5. Replies
    13
    Views
    1,575

    Re: Why doesnt my constructor work?

    Your algorithm is wrong, that's the reason. The Constructor is invoked but the firstColour and secondColour were already instantiated. So, they "ignore" what you set in your constructor. Compare them...
Results 1 to 5 of 5