Do you need classes?
Author |
Message |
Jonny Tight Lips
|
Posted: Thu Jan 13, 2005 11:52 am Post subject: Do you need classes? |
|
|
In Java can you make a program without using classes. Ie. Like turing, just right a program linearly? Also do you need to save every class as a seperate file or can you put multiple classes on one page just one after another? Thax |
|
|
|
|
|
Sponsor Sponsor
|
|
|
rizzix
|
Posted: Thu Jan 13, 2005 12:44 pm Post subject: (No subject) |
|
|
u always need classes in Java. u could put multiple classes in one file.. but it is not the standard for java programming. although u should keep in mind the name of the file should be that of the executable class (the one with the main method). |
|
|
|
|
|
Tony
|
Posted: Thu Jan 13, 2005 4:56 pm Post subject: (No subject) |
|
|
just make a single class with a single driver method main() and put everything inside of that. |
|
|
|
|
|
|
|