File tree
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -1579,7 +1579,7 @@ let car = new Car()
|
1579 | 1579 | **[⬆ back to top](#table-of-contents)**
|
1580 | 1580 |
|
1581 | 1581 | ### Prefer composition over inheritance
|
1582 |
| -As stated famously in the [Gang of Four](https://en.wikipedia.org/wiki/Design_Patterns), |
| 1582 | +As stated famously in [*Design Patterns*](https://en.wikipedia.org/wiki/Design_Patterns) by the Gang of Four, |
1583 | 1583 | you should prefer composition over inheritance where you can. There are lots of
|
1584 | 1584 | good reasons to use inheritance and lots of good reasons to use composition.
|
1585 | 1585 | The main point for this maxim is that if your mind instinctively goes for
|
|
You can’t perform that action at this time.
0 commit comments