"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
Originally posted by Rusty Shackleford:
As far as I know there are no equivants to a header file in java. Implementation + everything else is shoved into a .java file.
It does take a bit getting used to. The Java way felt weird to me for a while.
You can make the method(for some reason Java people insist on calling functions, methods) static. Then you can call it directly with ClassName.methodName();
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
42
Don't get me started about those stupid light bulbs. |