> How do you specify &D::C::A ?

        I hesitate to answer, because it's OT for the list,
        and q's about the C++ language tend to become large
        threads no matter how hard one tries to prevent it.

        So if you have more q's about C++ or need elaboration,
        google for "C++ tutorials multiple inheritance".

        FWIW:

#include <stdio.h>
class X {
public:
    X() { }
    void hello() { printf("Class X\n"); }
};
class Y {
public:
    Y() { }
    void hello() { printf("Class Y\n"); }
};
class Z : public X, public Y {
public:
   Z() : X(), Y() { }
   void hello() { printf("Class Z\n"); }
};
int main() {
    Z z;
    z.Z::X::hello();    // prints Class X
    z.Z::Y::hello();    // prints Class Y
    z.Z::Z::hello();    // prints Class Z
    return(0);
}
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to