
21 Oct
2009
21 Oct
'09
6:09 p.m.
2009/10/21 Ireneusz Szpilewski <irek@szpilewski.opole.pl>:
Don't look at class hierarchy, look at object. It would be composed of many other subobjects (by means of multiple inheritance), just as a human body is composed of different organs.
How do you implement a heart transplant when you inherit from your heart, rather than contain it? (Not that I think arguing by analogy is a good idea.)