1 / 9

COMP 110 Inheritance

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

esma
Download Presentation

COMP 110 Inheritance

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMP 110Inheritance 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 Employee Student Undergraduate Graduate Faculty Staff

  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 • 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

  9. Friday • Help with program 4

More Related