How come I keep getting an error when i compile this? Says itcannot find symbol?
ID: 3615203 • Letter: H
Question
How come I keep getting an error when i compile this? Says itcannot find symbol???public class OneStudentB // test class StudentB { public static void main(String[] argc) { StudentB myStudent = new StudentB(); myStudent.setName ("Allen"); System.out.println("Your name is " +myStudent.getName()); myStudent.setScore(94); System.out.println("Your score is " +myStudent.getScore()); } } How come I keep getting an error when i compile this? Says itcannot find symbol???
public class OneStudentB // test class StudentB { public static void main(String[] argc) { StudentB myStudent = new StudentB(); myStudent.setName ("Allen"); System.out.println("Your name is " +myStudent.getName()); myStudent.setScore(94); System.out.println("Your score is " +myStudent.getScore()); } }
Explanation / Answer
The problem does not lie in OneStudentB. it is in StudentB class. Send that class code as well or try to find the problem in that class
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.