I'm begining with java and I would like to know, if there's a possibility to declare a method (function) in class, but its body to place in another file because of better code arrangement.
//Name.h
class Name
{
void Function();
};
//Function.h"
void Name::Function() //this is what I'm trying to find
{
//the functions body
}
//Main.cpp
int main()
{
Name name;
name.Function();
}
Is there such a possibility in java? I know there are no header files, but is there another option? Thanks for Your answers!
I tried to search on internet but didn't find anything