I am working with (put in the simplest way I can think of) a three layer java file using jGRASP, for anybody else who happens to use that, and cares to think about that fact. I am sure that most other java editors work pretty much the same.
I am trying to simulate a computerized cash register. I have my three files that I am working with: CashRegister.java
, TestInventory.java
, and InventoryItem.java
.
I am not going to go into what each file does. I have that part down fairly well, and I am just confused on how the files interact with each other.
CashRegister.java
call and works off of TestInventory.java
, which is based from and works off of InventoryItem.java
.
I have looked around for, but I cannot really find anything that makes sense for me on how to call a class into another class.
In short, FileC needs to call FileB in order to do it's work, and FileB needs to do FileA in order to do it's job correctly.
Any recommendations or quick help? I don't need anything complicated, and I am sure it is something simple that I'm just not seeing.