[25] Héritage - multiple et virtuale

(Une partie de C++ FAQ Lite fr, Copyright © 1991-2002, Marshall Cline, cline@parashift.com)

Traduit de l'anglais par Christophe Galerne

Les FAQs de la section [25]


[25.1] How is this section organized?

This section covers a wide spectrum of questions/answers, ranging from the high-level / strategy / design issues, going all the way down to low-level / tactical / programming issues. We cover them in that order.

Please make sure you understand the high-level / strategy / design issues. Too many programmers worry about getting "it" to compile without first deciding whether they really want "it" in the first place. So please read the first several FAQs in this section before worrying about the (important) mechanical details in the last several FAQs.

[ Haut | Bas | Rechercher ]


[25.2] I've been told that I should never use multiple inheritance. Is that right?

[ Haut | Bas | Rechercher ]


[25.3] So there are times when multiple inheritance isn't bad?!??

[ Haut | Bas | Rechercher ]


[25.4] What are some disciplines for using multiple inheritance?

[ Haut | Bas | Rechercher ]


[25.5] Can you provide an example that demonstrates the above guidelines?

[ Haut | Bas | Rechercher ]


[25.6] Is there a simple way to visualize all these tradeoffs?

[ Haut | Bas | Rechercher ]


[25.7] Can you give another example to illustrate the above disciplines?

[ Haut | Bas | Rechercher ]


[25.8] What is the "dreaded diamond"?

[ Haut | Bas | Rechercher ]


[25.9] Where in a hierarchy should I use virtual inheritance?

[ Haut | Bas | Rechercher ]


[25.10] What special considerations do I need to know about when I use virtual inheritance?

[ Haut | Bas | Rechercher ]


[25.11] What special considerations do I need to know about when I inherit from a class that uses virtual inheritance?

[ Haut | Bas | Rechercher ]


[25.12] What special considerations do I need to know about when I use a class that uses virtual inheritance?

[ Haut | Bas | Rechercher ]


[25.13] One more time: what is the exact order of constructors in a multiple and/or virtual inheritance situation?

[ Haut | Bas | Rechercher ]


E-mail Marshall Cline Ecrire à l'auteur, au traducteur, ou en savoir plus sur la traduction.
C++ FAQ Lite fr | Table des matières | Index | A propos de l'auteur | © | Téléchargez votre propre copie ]
Dernière révision Sun Apr 13 23:54:41 PDT 2003