Next privilege 500 Rep.
Access review queues
Next badge 0/1
~4k people reached
- 0 posts edited
- 0 helpful flags
- 41 votes cast
What are the alternatives to “overriding a method” when using composition instead of inheritance?
Clarifed problem to be solved, so that I get more relevant answers.
Is there a language or design pattern that allows the *removal* of object behavior or properties in a class hierarchy?
Summariesed suggestion proposed in answers
Is there a specific design strategy that can be applied to solve most chicken-and-egg problems while using immutable objects?
Added important missing information.