blob: 2a4e07d3e77510a0c1a92c9f0a6db23c0699d35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package dardia;
public class Student instantiates InterImpl {
public Double GPA;
public Double getGPA() {
System.out.println("Student's getGPA() invoked!");
return GPA;
}
public void setGPA(Double _GPA) {
System.out.println("Student's setGPA() invoked!");
GPA = _GPA;
}
public String toString() {
return "Student's toString (GPA=" + GPA.toString() + ")";
}
}
|