Hi everyone, I am now learning classes and methods. I have problems with calling new object as instance of a class. Look at this:
University canteen wants to have a computer based system. They want to have a computer program that will allow them to order food and carry out transactions. The manager should be able to order pies and somosas and pay for them using this program. She/he(manager) will also be able to sell these goods to students with this new system.
And I programmed like this:
As you see wouldn't work! Also, I tried to save different classes in different files, but I encountered same problem.
I will be happy to receive your help. Sorry for taking your time and energy!