Search:

Type: Posts; User: theoriginalanomaly

Search: Search took 0.11 seconds.

  1. Replies
    42
    Views
    3,709

    Re: A beginner needs help in oop

    Your Methods and Fields are static. Static XPosition, YPosition mean that there is only 1 for the whole class. You are drawing both squares, but the second square you draw is overlaying the first...
  2. Replies
    42
    Views
    3,709

    Re: A beginner needs help in oop

    getters and setters are what they are usually called. Instead of using a constructor, you have a setMethod() and a getMethod(). At least that is one way. squareRed.setXposition(64), or...
  3. Replies
    42
    Views
    3,709

    Re: A beginner needs help in oop

    That is a lot of classes. Usually you wouldn't want that many classes that didn't do too much, I'm not sure if it is an assignment where you are supposed to have that many classes or not, but it can...
Results 1 to 3 of 3