File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
behavioral/template-method Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ TemplateMethod says: But I am doing the bulk of the work anyway
2323
2424Same client code can work with different concrete implementations:
2525TemplateMethod says: I am doing the bulk of the work
26- ConcreteStruct1 says: Implemented Operation1
26+ ConcreteStruct2 says: Implemented Operation1
2727TemplateMethod says: But I let subclasses override some operations
28- ConcreteStruct1 says: Implemented Operation2
28+ ConcreteStruct2 says: Implemented Operation2
2929TemplateMethod says: But I am doing the bulk of the work anyway
3030```
Original file line number Diff line number Diff line change @@ -62,5 +62,5 @@ fn main() {
6262 println ! ( ) ;
6363
6464 println ! ( "Same client code can work with different concrete implementations:" ) ;
65- client_code ( ConcreteStruct1 ) ;
65+ client_code ( ConcreteStruct2 ) ;
6666}
You can’t perform that action at this time.
0 commit comments