Search:

Type: Posts; User: jps

Search: Search took 0.16 seconds.

  1. Replies
    42
    Views
    3,713

    Re: A beginner needs help in oop

    I don't know of an IDE that warns about accessing a static member of a class from an instance. In fact static members are able to be accessed by all instances, that is what they are for. Don't worry...
  2. Replies
    42
    Views
    3,713

    Re: A beginner needs help in oop

    Use some printlns to verify the values of the variables and see if you can find any clues.

    A couple things I noticed in the code post #37

    Never create objects or make big calculations in the...
  3. Replies
    42
    Views
    3,713

    Re: A beginner needs help in oop

    Please use Code tags, not quote tags, when posting code.


    Square squareRed = new Square(); <--This is inside the square class. This makes it visible only within the square class. from public...
Results 1 to 3 of 3