In: Computer Science
"You will need to compile each Java source file (provided below) separately, in its own file since they are public classes, to create a .class file for each, ideally keeping them all in the same directory."
My class is asking me to do this and i am not understanding how to do it. I use JGRASP for all of my coding and i can't find a tutorial on how to do it. I just need a step by step tutorial on how to do this inheritance thing on JGRASP.
Wherever your .java files are kept, if you run the command: "javac *.java", then all your classes will be compiled and the .class files will be created in the directory.. i had 2 files Alien.java and AlientDatabase.java.. When i ran javac *.java, 2 additional files for .class got created.. As you can see in the images.
************************************************** Thanks for your question. We try our best to help you with detailed answers, But in any case, if you need any modification or have a query/issue with respect to above answer, Please ask that in the comment section. We will surely try to address your query ASAP and resolve the issue.
Please consider providing a thumbs up to this question if it helps you. by Doing that, You will help other students, who are facing similar issue.