public class Student extends Person{ private double gpa; public Student(String name, int age, double gpa) { super(name, age); // calls the constructor of Person that takes // a String and an int // The super call MUST always be the first line in the constructor this.gpa = gpa; } // override the speak method from the Person class public void speak() { super.speak(); // calls the speak method in Person // doesn't need to be on the first line (different from super() in the // the constructor) System.out.println("My gpa is " + gpa + "."); } }