Home > Software design >  How can i point to multiple arrays?
How can i point to multiple arrays?

Time:03-30

I want to create a pharmacy main store. I am supposed to add multiple meds to each prescription, that is created by the system before the operation of the app, yet I am not able to find how I can do that...

Thats the code i have writen so far... is there anything i have to rewrite or add?

CodePudding user response:

Try changing the argument for your Prescription constructor to include other arrays instead of just one.

CodePudding user response:

you could try to make a method inside Medicine that creates an array made by the Medicine you need

  • Related