1.5.10 How to Pass a Returned Value Through to the Calling Method

If you are wanting to get a value that resides in another class, but need to return it to another call it will be returned through multiple levels.

So Sam the TicketBooth Attendant has a slightly criminal element to him and he wants to start reselling food from the TicketBooth at a higher price. To do this he needs to figure out the upcharge of the Food item he has so we will give the Employee a new method that gets the price change of their Food item.

This is all well and good, but now there isn't a way to use that information. To use it in the way he would like to the information needs to be in the MainWindow. To do this there needs to be a change in the return type and a new call.

Now Sam could potentially sell his new, higher priced Meatloaf to someone else.