Notes
Slide Show
Outline
1
Design Patterns:
Interfaces, Composition, and Inheritance
  • Written by Jeff Smith
  • Copyright © 2004. All rights reserved.
2
What is an Interface? -1
3
What is an Interface? -2
4
Interface Example -1
5
Interface Example -2
6
Interface Example -3
7
Interface Example -4
8
Interface Example -5
9
Interface Example -6
10
Interface Example -7
11
Interfaces and Constants -1
12
Interfaces and Constants -2
13
Interfaces and Constants -3
14
Interfaces vs. Abstract Classes-1
15
Interfaces vs. Abstract Classes-2
16
Composition and Inheritance
17
What Constitutes Good Design?
18
What are stacks?
19
Stack Class Using Composition-1
20
Stack Class Using Composition-2
21
Stack Class Using Inheritance -1
22
Stack Class Using Inheritance -2
23
Stack Class Using Inheritance -3
24
Stack Class Using Inheritance -4
25
Composition or Inheritance? -1
26
Composition or Inheritance? -2
27
Composition or Inheritance? -3
28
Composition or Inheritance? -4
29
Stack Class Using Interfaces -1
30
Stack Class Using Interfaces -2
31
Stack Class Using Interfaces -3
32
Stack Class Using Interfaces -4
33
Stack Class Using Interfaces -5
34
Stack Class Using Interfaces -6
35
Stack Class Using Interfaces -7
36
Stack Class Using Interfaces -8
37
Stack Class Using Interfaces -9
38
Summary
39
Exercise -1
40
Exercise -1 (continued)