SLIDE 1
Aspects of Inheritance
- Code Reuse
- Substitutability
○ Polymorphism and Dynamic Binding [ compile-time type checks ] ○ Sub-contracting [ runtime behaviour checks ]
2 of 18
Subcontracting Readings: OOSCS2 Chapters 14 16 EECS3311 A & E: - - PowerPoint PPT Presentation
Subcontracting Readings: OOSCS2 Chapters 14 16 EECS3311 A & E: Software Design Fall 2020 C HEN -W EI W ANG Aspects of Inheritance Code Reuse Substitutability Polymorphism and Dynamic Binding [ compile-time type checks ]
2 of 18
3 of 18
4 of 18
5 of 18
6 of 18
get_reminders: LIST[EVENT] require ?? ensure ??
get_reminders: LIST[EVENT] require else ?? ensure then ??
my_phone: SMART_PHONE my_phone
7 of 18
8 of 18
9 of 18
10 of 18
11 of 18
12 of 18
13 of 18
14 of 18
15 of 18
16 of 18
17 of 18
18 of 18