![]() |
Naming Rules
I thought that the name of your class must be the same as the name of your project or file. I'm using JDeveloper and I just named a project "Gears of War." Then I named my class "GearsOfWarBaby", and I expected it to fail but it ran just fine. I don't get it.
|
The code for a class must be in a file with the same name; eg, the code for the class GearsOfWarBaby must be in a file named GearsOfWarBaby.java. A project in an IDE such as JDeveloper may contain many such files.
|
Okay after expanding the nodes it looks like there is a file called GearsOfWarBaby that has a .java extension after it. That must be it then?
But it looks like I can name my program/project anything I want. I can even put a space between the words like Gears of War. |
Quote:
Quote:
|
| All times are GMT -5. The time now is 4:22 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC