To reduce dependece of class, I want to send parameter (using generic class) to constructor that extends some class and implements interface, for example
public
For Kotlin you can use such syntax:
class MyClass where T: AnotherClass, T: SomeInterface