How do I import a class I wrote in a different file? All my classes are under the same package.
Import by using the import keyword:
import
import package.myclass;
But since it's the default package and same, you just create a new instance like:
elf ob = new elf(); //Instance of elf class