Question: Try the following code. Note that it has a bug! It tries to access the private instance variable email from outside the class Student. Change


TesterClass.java TesterClass.java | return name; /** getEmail() areturn email */ public String getEmail() \{ \{ return email; /** getName() areturn id */ public int getId() \{ return id; \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
