This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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!