I have two programs in the same package but I am not sure how to run the program. I was able to compile using help from Javaranch member. Now how do I execute the same. I compiled using this command.
javac AnyClassA.java SuperClassA.java and it worked.
Also, my question is what do I have to keep in mind while running programs in packages. Please help.
Program1 - SuperClassA.java - has a variable and a method which are coderanch. But the class is default.
Program2 - SubClassA.java - should be able to access the public members of the class in the same package. I have the main method defined in this program.