File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ let car = new Car()
15791579
**[⬆ back to top](#table-of-contents)**
15801580

15811581
### 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,
15831583
you should prefer composition over inheritance where you can. There are lots of
15841584
good reasons to use inheritance and lots of good reasons to use composition.
15851585
The main point for this maxim is that if your mind instinctively goes for

0 commit comments

Comments
 (0)