Defining classes with Inheritance r We introduced the concept of inheritance in Chapter 1 r We will present a concrete example of using an inheritance in java to define related classes Suppose we want to model graduate and undergraduate students in maintaining a class roster. r For both types of students we keep their name, three test scores and the final course grade. The formula for deriving the final course grades are different for undergraduate and graduate students r How shall we implement the two types of students? C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 14-3© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 14 - 3 Defining Classes with Inheritance We introduced the concept of inheritance in Chapter 1. We will present a concrete example of using an inheritance in Java to define related classes. Suppose we want to model graduate and undergraduate students in maintaining a class roster. For both types of students we keep their name, three test scores, and the final course grade. The formula for deriving the final course grades are different for undergraduate and graduate students. How shall we implement the two types of students?