Download presentation
Presentation is loading. Please wait.
Published byVincent Hines Modified over 6 years ago
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() }
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.