What's the difference between : ``` interface Base...
# android
j
What's the difference between :
Copy code
interface BasePresenter<in T : BaseView> {
    fun attachView(view: T)
}
And
Copy code
interface BasePresenter<T> {
    fun attachView(view: T)
a
when u specify
in:
for generic it means that you need to pass it as a parameter for any function but you cannot use that to return any value of the type specified to function where as when you just add
T
you can use the type as a parameter as well as return type to any function