Presentation is loading. Please wait.

Presentation is loading. Please wait.

Structural Patterns Class patterns – inheritance

Similar presentations


Presentation on theme: "Structural Patterns Class patterns – inheritance"— Presentation transcript:

1 Structural Patterns Class patterns – inheritance
Object patterns – composition - you can change the composed class at run-time

2 class UsefulClass useful_operation() Class NicksClass UsefulClass myUsefulClass; nicks_operation() { myUsefulClass.useful_operation() }

3

4 OtherClass Request()

5 Bridge Abstraction – the set of operations a class or class hierarchy must support Implementation – Different ways of performing those operations

6 DataImp UpdateData SQLupdate PickleUpdate changeGrade(name…)
Send SQL update cmn To database changeGrade(name…) { Read in data, change it, Write to file

7 ? ? DataImp UpdateData SQLupdate PickleUpdate changeGrade(name…)
Send SQL update cmn To database changeGrade(name…) { Read in data, change it, Write to file


Download ppt "Structural Patterns Class patterns – inheritance"

Similar presentations


Ads by Google