|
-
October 29th, 2003, 07:39 AM
#1
you got the error because you had it as gears when the variable was gear.
If you do make it a separate file for each class and change gears to gear, it should work.
also try switching the order of the classes to the Main class being first then the Car class second. It might not require two different files if you do it that way. Jcreator will let you have many classes in the same file. I don't know about netbeans though. Yes I forgot, thanks for reminding me weaver. Just put the Main class first then the Car class and take out the public keyword before the Car class.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|