Skip to content

Commit 10c2196

Browse files
codethought2ochococo
authored andcommitted
cleanups of compile errors and subtle\n changes to the call structure so progammers see what the \n template pattern implemenation looks like at runtime
1 parent 20501f2 commit 10c2196

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Design-Patterns.playground.zip

10.4 KB
Binary file not shown.

Design-Patterns.playground/Pages/Behavioral.xcplaygroundpage/Contents.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ protocol Garden {
636636
extension Garden {
637637

638638
func prepareGarden() {
639-
prepareSoil()
640-
plantSeeds()
641-
waterPlants()
639+
func prepareSoil()
640+
func plantSeeds()
641+
func waterPlants()
642642
}
643643
}
644644

@@ -649,15 +649,15 @@ final class RoseGarden: Garden {
649649
}
650650

651651
func prepareSoil() {
652-
print("prepareSoil for Rose Garden")
652+
// Implementation
653653
}
654654

655655
func plantSeeds() {
656-
print("Plant Seeds for Rose Garden")
656+
// Implementation
657657
}
658658

659659
func waterPlants() {
660-
print("Water the Rose Garden")
660+
// Implementation
661661
}
662662
}
663663

0 commit comments

Comments
 (0)