lundi 14 mai 2018

Why this code is not possible in Kotlin?

Below is a perfectly construct in C++, C# and other similar languages. Why this is not possible in Kotlin

open class EndPoint<T> (url: String): T{

...
}

class BlueEndPoint: EndPoint<BlueInterface>{}
class RedEndPoint: EndPoint<RedInterface>{}

Aucun commentaire:

Enregistrer un commentaire