Content deleted Content added
→Features: Fixed typo Tags: canned edit summary Mobile edit Mobile app edit Android app edit |
→Composition, inheritance, and delegation: fix/clarify "Delegation" link |
||
Line 211:
The "[[open/closed principle]]" advocates that classes and functions "should be open for extension, but closed for modification".
[[Delegation (object-oriented programming)|Delegation]] is another language feature that can be used as an alternative to inheritance.
===Polymorphism===
|