Multiple Inheritance

Multiple inheritance can cause problems if different values are inherited along different paths.

Suppose clyde[Example due to Scott Fahlman.] inherits from both elephant and albino. Elephants normally have color gray, while albinos normally have color white. What color is clyde?


albino                elephant
   \ color: white        / color: gray
    \                   /
     \                 /
      \               /
       \             /
        \           /
         \         /
          \       /
            clyde

Contents    Page-10    Prev    Next    Page+10    Index