UMG Inherit

I’m create a parent class of UMG, and I hope its child class could inherit variables and functions. When child classes come to tens, each time complie the project comes to a “fatal error”.
So what is the best way to deal with these umg that have same functions?