Trying to troubleshoot errors in the psvm, I honestly have no clue what's wrong or what to google pertaining to this. It wont let me post this without more words but I honeslty don't know whats wrong with the program to give any more details.
public class backToSchoolDalton{
public class Person{
//Person Code
public class Teacher extends Person{
//TeacherCode
public class Student extends Person{
//StudentCode
public class CollegeStudent extends Student {
//CollegeStudentCode
public static void main(String[] args) {
ERROR HEAVEN RIGHT HERE
backToSchoolDalton a = new backToSchoolDalton();
backToSchoolDalton b = new backToSchoolDalton();
backToSchoolDalton c = new backToSchoolDalton();
backToSchoolDalton d = new backToSchoolDalton();
a.Person("Coach Bob", 27, "M");
b.Student("Lynne Brooke", 16, "F", "HS95129", 3.5);
c.Teacher("Duke Java", 34, "M", "Computer Science", 50000);
d.CollegeStudent("Ima Frosh", 18, "F", "UCB123",
4.0, 1, "English");
Person bob = new Person("Coach Bob", 27, "M");
System.out.println(bob);
Student lynne = new Student("Lynne Brooke", 16, "F", "HS95129", 3.5);
System.out.println(lynne);
Teacher mrJava = new Teacher("Duke Java", 34, "M", "Computer Science", 50000);
System.out.println(mrJava);
CollegeStudent ima = new CollegeStudent("Ima Frosh", 18, "F", "UCB123",
4.0, 1, "English");
System.out.println(ima);
}
}
Please help!