Docsity

Cinco de Mayo: Interfaces, Abstract Classes - Notes | CMPSCI 121, Study notes of Computer Science

Partial preview of the text

Download Cinco de Mayo: Interfaces, Abstract Classes - Notes | CMPSCI 121 and more Study notes Computer Science in PDF only on Docsity!

Cinco de Mayo: Interfaces,

Abstract Classes

CMPSCI 121, Spring 2009

Introduction to Problem Solving with Computers

Prof. Learned-Miller

Logistics

 My office hours this week:
 Thursday, 2:30-4:
 Note on Homeworks worth "1 point"
 FINAL ASSIGNMENTS:
 Read Chapter 13 for last day of class.
 Chapter 11 exercises:
  • Due this Thursday
 Chapter 12 Exercises:
  • Due this Friday
 Create City Scene:
  • Due on last day of class.
 Final exam:
 Same basic format.
 Somewhat longer.
 Summary slides will be handed out.
 Practice recommendation: redo midterms.

Implementing interfaces

 After defining the interface, add it to some classes

Implementing Interfaces

 After defining the interface, add it to some classes

 Want to be able to compare:

 two Infants

 two Cars

 two Persons

 etc.