阅读下列问题描述和相应的程序,按下面给出的程序运行结果将程序补充完整。程序的运行结果如图所示。 请补全以下程序: class Person{ protected String name; protected char sex; ( 1 ) { this.name=name; this.sex=sex; } String name(){ return name; } char sex(){ return sex; } public String toString(){ String s=new String(name+"(sex:"+sex+")"); return s; } } class Student extends Person{ protected String id; Student(String name,char sex){ ( 2 ) } Student(String name,char sex,String id){ super(name,sex); this.id=id; } public String toString(){ String s=new String(name+"(sex:"+sex); ( 3 ) s+=")"; return s; } ( 4 ) { this.id=id; } } public class TestPerson { public static void main(String[] args) { Person frank=new Person("Frank",'M'); Student alice=new Student("Alice",'F'); System.out.println("frank: "+frank); System.out.println("alice: "+alice); Person tom=alice; System.out.println("tom: "+tom); ( 5 ) System.out.println("tom: "+tom); } }