public class TestTeacher {
public static void main (String [] args) {
Person P1 = new Person ("A");
Person P2 = new Person ("B","shanghai");
Student S1 = new Student ("C","S1");
Student S2 = new Student ("C","shanghai","S2");
System.out.println(P1.info());
System.out.println(P2.info());
System.out.println(S1.info());
System.out.println(S2.info());
Teacher t1 = new Teacher ("D", "professor");
System.out.println(t1.info());
}
}