Hi everyone,
I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering -
in C++ you could have a header file with functions only in it, say "MyFunctions.h"
int functionA ()
{
return 10;
}
string functionB ()
{
return "hello";
}
double functionC ()
{
return 5.5;
}
And include this file in another - so you could just call "double d = functionC ();", so i was wondering is there a way to do this in Java, or would I have to put all the functions within a class, create an instance of the class and call them that way? A bit of a stupid question I know but any help would be much appreciated :)