How to override a parent component in UE4 C++?

I cannot attach the B1/B2/B3 by using the inherited from A component (box).