What use is there for the Bill class to have members that can't be accessed? What are they used for?
Type: Posts; User: Norm
What use is there for the Bill class to have members that can't be accessed? What are they used for?
Does the Bill class have a way to get the Physician associated with the bill?
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.
What is the error for the statement in bold?
That's a strange question to ask. currentBill was just define as a Bill????
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...
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...
Please ask something specific about your problem.
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...