You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- "Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing instances of other classes that implement the desired functionality) rather than inheritance from a base or parent class."
29
+
- "Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the
30
+
principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing
31
+
instances of other classes that implement the desired functionality) rather than inheritance from a base or parent
32
+
class."
32
33
- Chrome's optimization makes it so that sims would be faster if we used composition over inheritance.
33
34
- Composition is generally more flexible.
34
35
- If what you are trying to model can easily be described by composition, you should use composition.
35
36
- If composition produces numerous forwarding calls, it indicates that perhaps inheritance should be used instead.
36
37
- The forwarding calls produced by composition can be beneficial though, they are explicit and protect things things
37
38
that need to stay private.
38
-
- It was mentioned that numerous forwarding calls can increase the memory impact, especially on types that are instantiated many many times by a simulation (like Vector2).
39
+
- Numerous forwarding calls can increase the memory impact, especially on types that are instantiated many many times
40
+
by a simulation (like Vector2).
39
41
40
42
## Creator (with Drag Forwarding)
41
43
(formerly known as the Model Element Creator Pattern)
0 commit comments