Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Re: An Array List of a Class that contains two other Classes

    What use is there for the Bill class to have members that can't be accessed? What are they used for?
  2. Re: An Array List of a Class that contains two other Classes

    Does the Bill class have a way to get the Physician associated with the bill?
  3. Re: An Array List of a Class that contains two other Classes

    Does the Bill class container Physicians? Does the Bill class have a method that will return a reference to the Physicians? Call that method to get to the Physicians.

    I'm done for tonight.
  4. Re: An Array List of a Class that contains two other Classes

    What is the error for the statement in bold?


    That's a strange question to ask. currentBill was just define as a Bill????
  5. Re: An Array List of a Class that contains two other Classes

    The compiler wants the code to use a variable of type: Physician where it now has one of type Bill.


    You've left off some of the error message so I don't know what statement is causing that...
  6. Re: An Array List of a Class that contains two other Classes

    Where is the data for the fee? Its location will determine how it is "fetched".
    Read a disk file or get it from a user.


    When you get errors, copy the full text of the messages and paste it...
  7. Re: An Array List of a Class that contains two other Classes

    Please ask something specific about your problem.
  8. Re: An Array List of a Class that contains two other Classes

    If you can get a reference to the object that contains the method, you can use that reference to call the method.
    The ArrayList class has methods to access its contents.

    Post some code to show...
Results 1 to 8 of 8