In C++, one can simply use something like
#include <iostream.h>
#include "mycustomclass.cpp"
where < > meant a C++ file that is in the C++ installation directory and libraries
and where " " meant a C++ is currently in the same directory than a C++ file that you are working on.
Now.. if I wanted to work with java, I'd know use this:
import java.io.*
but that's for core java files and libraries
how do add/import a java file that is in the same directory as the one i'm working:
Example:
I have 2 classes in my directory:
Hello.java
Meow.java
Meow.class
Meow has been compiled already
I want to be able to use an instance of class Meow inside of Hello.java -- how do I include Meow in it?
#include <iostream.h>
#include "mycustomclass.cpp"
where < > meant a C++ file that is in the C++ installation directory and libraries
and where " " meant a C++ is currently in the same directory than a C++ file that you are working on.
Now.. if I wanted to work with java, I'd know use this:
import java.io.*
but that's for core java files and libraries
how do add/import a java file that is in the same directory as the one i'm working:
Example:
I have 2 classes in my directory:
Hello.java
Meow.java
Meow.class
Meow has been compiled already
I want to be able to use an instance of class Meow inside of Hello.java -- how do I include Meow in it?