Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Do you need classes?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: 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
Sponsor
sponsor
rizzix




PostPosted: 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




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: