I am reading about concurrent programming. Here it is mentioned about inheritance anomaly problem.
Inheritance anomaly is mentioned in following article on Active object pattern on page 4.
http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf
Can any one mention what is inheritance anomaly problem?
Thanks!
The issue seems to occur from back in 1993 when they thought that inheritance for code re-use was a good idea.
It usually isn’t. It wasn’t then but they thought it was.
Inheritance should be for polymorphic behaviour. Templates or generics or composition should be used for code-reuse.
The main article seems to be this one