ClassA have variable “VarA” and function “FuncA”
ClassB have variable “VarB” and function “FuncB”
Its not a interface, ClassA know how implement FuncA by himself, ClassB - same.
I want ClassC inherited from ClassA and ClassB, with its own var and func. And if i cast ClassC to ClassA and call FuncA - i want execute code from ClassA without any overload.
You cannot inherit from two or more UObject derived classes to prevent inefficient diamond inheritance. It makes the reflection slow and confusing.
However, you can use composition using components. In your example you would have componentA and componentB, some Actor class C can have either or both ComponentA||B and call their functions respectively.
Components are the best way to have flexible composition in ue4