A (base) | B inherits | C inherits #### A | +---+--+---+---+ B C D E <---------- Factory picks b,c,d or e #### A (base) | B -+ | | C |-- Factory can handle the chain (only B and C shown) -+
## A | +---+--+---+---+ B C D E <---------- Factory picks b,c,d or e ##
## A (base) | B -+ | | C |-- Factory can handle the chain (only B and C shown) -+