Hello,
New to
Java.
I have written a class named School with few attributes and 2 simple methods. This java file compiled successfully.
I want to instantiate object of this School in another class called SchoolApp which has Main method. I am using sublime as text editor.
How to import or refer the School class file in my SchoolApp file?
Here is the code of SchoolApp file:
When I compile SchoolApp (javac SchoolApp.java), I am getting the following error:
SchoolApp.java: error: cannot find symbol
School aschool = new School();
I am sure I don't know how to reference School class in my SchoolApp.java file. Any suggestions how to fix this.
Thank you very much