Hey there. Just thought I would share something I stumbled upon while messing with some code, trying to break things, who knows what I was thinking lol.
I wasn’t able to find any documentation or wiki entries mentioning but you can actually create interfaces that inherit from other interfaces. I don’t know if this is intended or something that just happens to slip past the compiler but it’s been compiling for me and works fine so far.
The trick is that if I want IMyInterface_2 to inherit IMyInterface_1, I would inherit IMyInterface_1 in UMyInterface_2 (not IMyInterface_2).
IMyInterface_2 I also didn’t have to override the virtual functions from IMyInterface_1 and when a class inherits from #2 the compiler enforces the requirements of both interfaces.
Again, I have no idea if this is supposed to be allowed or not but I haven’t come across any problems yet.
Thought this was a fun find and figured I’d share in case this is of use to anyone.