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