Do you need classes?
Author |
Message |
Jonny Tight Lips
![](http://www.deftone.com/misc/johnny_tightlips.jpg)
|
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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
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). |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
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. ![Confused Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|