class A {};
class Bx : A { /* add method here */ };
class B1 : Bx {};
class B2 : Bx {};
class B3 : Bx {};
class B4 : A {};
class B5 : A {};
...
class B10 : A {};
Another idea is to use multiple inheritance, but I've heard that is the goto of the 90's.
1 2 3 4 5 6 7 8 9 10 11
class A {};
class Bx : virtual A { /* add method here */ };
class B1 : Bx, virtual A {};
class B2 : Bx, virtual A {};
class B3 : Bx, virtual A {};
class B4 : A {};
class B5 : A {};
...
class B10: A {};