Re: [GD-General] Overhead of RTTI
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2002-12-24 16:21:54
|
Nicolas Romantzoff wrote: >>> And, as a general rule, multiple inheritance is evil and should be >>> avoided. >> >> Whoa! Talk about an overblown general statement! I'd like to add that I concur with the original post. One could say (grabs the number-filled hat) that 70% of MI uses are plainly bad and 20% are ok but can be done better in other ways (aggregation, etc). Note that I see inheriting multiple interfaces as something different from "general" MI. > Objects should inherit at most ONE object, and implement as many > interfaces as needed. > Interfaces should expend at most ONE interface. Can you explain more carefully? I didn't really understand the second rule. |