1 COMP 110 Inheritance Tabitha Peck M.S. April 16, 2008 MWF 3-3:50 pm Philips 367
2 Announcements Help with Program 4 (Due next Wednesday) Final –Monday, May 5 –Philips 367 –4:00 p.m.
3 Questions?
4 Today in COMP 110 More Inheritance
5 Inheritance Define a general class Later… define specialized classes Specialized class inherits properties from general class –Instance variables –Methods
6 UML Diagram Person Student Employee Undergraduate Graduate FacultyStaff
7 Create your Own Groups of 3 –1 person you have never worked with before –1 video game player Design a character class for a video game
8 What to hand in 1.Brainstorm Character instance variables and methods 2.Build (separate) UML diagrams for 4 different characters 3.Using inheritance rewrite your UML diagrams 4.Explain why inheritance is wonderful
9 Friday Help with program 4