«^»
7.6. Using the class Student

Here is a Java application that tests some aspects of the class Student:

0579: public class UseStudent {                                 // UseStudent.java
0580:    public static void main(String[ ] args) {
0581:       Person tPerson = new Person("Jones", 1.6F, new Date(1969,12,25));
0582:       System.out.println(tPerson);
0583:       Student tStudent = 
0584:          new Student("Smith", 1.85F, new Date(1970,6,12), "Computing", 27);
0585:       System.out.println(tStudent);
0586:       tPerson = tStudent;
0587:       System.out.println(tPerson);
0588:     }
0589: }