/** Example from Core Java 8th edition by Horstmann and Cornell */ public class Student extends Person { public Student(String n, String m) { super(n); major = m; } // abstract method defined public String getDescription() { return "a student majoring in " + major ; } private String major; }