I have unit1, where is
Intf1 = interface
methods knows by unit1, for example for Linux and Windows
end;
TMyClass1 = class(TInterfacdedObject,Intf1)
end;
unit2, where is
Intf2 = interface(Intf1)
methods knows by unit2, for example only for Windows
end;
TMyClass2 = class(TInterfacdedObject,Intf2)
or better
TMyClass2 = class(TMyClass1, Intf2)
end;
It is correct? TMyClass2 has TMyClass1 fields only once?
I prefer
TMyClass2 = class(TMyClass1, Intf2) to using TMyClass1 in methods not knowing unit2 and works on TMyClass2/