interface A interface B class C where T : B