class Student{
private
String name;
private String ssn;
private String dob;
Student(String n, String s, String d){
name = n;
ssn = s;
dob = d;
Student s1 = new Student("dale","123-45-6789","5-18-70");
System.out.println("Their name is: " + s1.name);
}
}
What would be the proper way to access and change the
name variable. Write two methods that would allow us
to do this for the student class. One "accessor" and
the other a "mutator", or getName() and setName();
I would greatly appreciate if someone could help me with this. Thanks! Taryn