Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Yes, the IDier class needs to have those methods defined.
  2. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Put a method in the base class that will keep track.
  3. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    The base class IDier does not have the method so you can not use an IDier object to get to methods in an sub class.
    You could cast the object from the array to be the class that has the method, but...
  4. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    You still have not answered my question:
    What data type is the variable: ecosysteem?

    Does that data type/class have the methods that are not being found?

    If you do not know the datatype of...
  5. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Then you can only use references to those two classes to call those methods.
  6. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    What data type is the variable: ecosysteem?
    Is it an int or a String or one of your classes or what?


    Then you can not use the ecosysteem variable as a reference to call that method. The...
  7. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Where are the methods in the error messages defined?

    What data type is the variable: ecosysteem?
    Does it have a getVerplaatst() method?
  8. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    If the array IDier contains objects with the get/setBoolean methods, you use indexes to get the one element in the array you want to work with:
    IDier[i][j].get/setBoolean()
  9. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Can you post a code structure that shows the problem?
    Where is the boolean variable?
    From where do you need to see the value of the variable?
  10. Replies
    24
    Views
    1,750

    Re: Looping method problem.

    Play computer with your code, do the statements one by one, keeping track of the values of the variables as you proceed and see what the code does.
Results 1 to 10 of 10