Computer Science Canada

Do you need classes?

Author:  Jonny Tight Lips [ 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

Author:  rizzix [ Thu Jan 13, 2005 12:44 pm ]
Post 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).

Author:  Tony [ Thu Jan 13, 2005 4:56 pm ]
Post subject: 

just make a single class with a single driver method main() and put everything inside of that. Confused


: