I have a class design problem, and I don't know how to approach it

I have a Widget Blueprint A that inherits from another Widget Blueprint B, the base WBP B allows it to fade in and fade out when created. The problem is that now I want to give my concrete WBP A a series of functionalities that I am interested in calculating in C++, they are functions related to probability. I don’t know how to do it, because a Blueprint can only inherit from one class, right?

I think you can go with interfaces here instead of a second class .

I think I’m going to solve it with composition.