"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
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|