For example, I created 2 classes "Buy" and "Sell" which have the "main" method. Now I created a new class called "menu" which will prompt the user to enter their choice of what program to run. I designed it so that when user enter 1, it will run the "Buy", when user enter 2, it will run the "sell". But this is the problem. How to call the "main" method in the Buy and Sell class?
2007-01-18
12:41:37
·
4 answers
·
asked by
sylvdoanx
2
in
Computers & Internet
➔ Programming & Design