Another problematic multiple inheritance mechanism: Construction and destruction in C++ in the virtual multiple inheritance case

Por: Analíticas: Mostrar analíticasTipo de contenido:
  • texto
Tipo de medio:
  • sin mediación
Tipo de soporte:
  • volumen
Tema(s):
Contenidos:
Multiple inheritance consists of allowing inheritance that is not restricted to a treelike structure. It offers many advantages as a design and programmning concept, both in efficiency and expressivity. Although the C++ language supports multiple inheritance, programmers often shun this concept, as it is known to have problematic aspects. Among the numerous difficulties raised by C++ implementation of multiple inheritance, the delicate issues of constructor and destructor invocation are discussed. Some cases are studied in which errors are caused by a faulty construction/destruction of objects when the virtual inheritance mechanism is used. Each case is illustrated with a simple, readily understood example
En: JOOP : the journal of object-oriented programming (vol. 13, nro. 4, Jul-Aug. 2000), p. 6-12S.T.:H004.415 JOU PP3424
Valoración
    Valoración media: 0.0 (0 votos)
No hay ítems correspondientes a este registro

Multiple inheritance consists of allowing inheritance that is not restricted to a treelike structure. It offers many advantages as a design and programmning concept, both in efficiency and expressivity. Although the C++ language supports multiple inheritance, programmers often shun this concept, as it is known to have problematic aspects. Among the numerous difficulties raised by C++ implementation of multiple inheritance, the delicate issues of constructor and destructor invocation are discussed. Some cases are studied in which errors are caused by a faulty construction/destruction of objects when the virtual inheritance mechanism is used. Each case is illustrated with a simple, readily understood example

No hay comentarios en este titulo.

para colocar un comentario.