When is the situation where Generalization is inevitable over Composition?
Many people prefer composition to generalization in many scenarios,
However, are there any times where generalization is an absolute necessity?
Could you please raise an example where this could happen?
Thanks
Jack
Re: When is the situation where Generalization is inevitable over Composition?
Quote:
Originally Posted by
lucky6969b
Many people prefer composition to generalization
I've never heard of that. Do you mean: Favour object composition over class inheritance?