Assume the following class inheritance treeWhy should I assume that, unless I'm also assuming that someone doesn't get "ISA" vs "HAS-A" for design?
Acme ISA company. Acme HASA It department. Acme-IT ISA company division. So, fix your design, and the problems go away. Acme is an instance of company, and Acme-IT is an instance of a company division. And there's no other inheritance along the other axes.
If the answer to a question is "multiple inheritance", you've probably asked the wrong question.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: inheritance and object creation
by merlyn
in thread inheritance and object creation
by knew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |