RE: [GD-General] Overhead of RTTI
Brought to you by:
vexxed72
From: Nicolas R. <nic...@fr...> - 2002-12-24 16:47:14
|
> > 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. > That second rule is just to say that you never need MI at interface level. Just define separate interfaces. I'm even wondering if one would need inheritance for interfaces at all (apart from a "root" interface like the COM's IUnknown). Objects on the opposite do need MI for interface implementation. Here, we are trying to use different words for inheritance: Object To Object inheritance = Override (the "IS A" relationship). Object To Interface inheritance = Implementation. Interface To Interface inheritance = Expansion. (of course there is never any Interface To Object inheritance). Nicolas |