90 likes | 275 Views
COMP 110 Inheritance. Tabitha Peck M.S. April 16, 2008 MWF 3-3:50 pm Philips 367. Announcements. Help with Program 4 (Due next Wednesday) Final Monday, May 5 Philips 367 4:00 p.m. Questions?. Today in COMP 110. More Inheritance. Inheritance. Define a general class
E N D
COMP 110Inheritance Tabitha Peck M.S. April 16, 2008 MWF 3-3:50 pm Philips 367
Announcements • Help with Program 4 (Due next Wednesday) • Final • Monday, May 5 • Philips 367 • 4:00 p.m.
Today in COMP 110 • More Inheritance
Inheritance • Define a general class • Later… define specialized classes • Specialized class inherits properties from general class • Instance variables • Methods
UML Diagram Person Employee Student Undergraduate Graduate Faculty Staff
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
What to hand in • Brainstorm Character instance variables and methods • Build (separate) UML diagrams for 4 different characters • Using inheritance rewrite your UML diagrams • Explain why inheritance is wonderful
Friday • Help with program 4