Constraints in inherited list of abstract class

I’m hitting a wall in a complex project with a few abstractions implied. For privacy purposes, I have tried to translate the items in my problem to more common ones, so it may sound a bit ridiculous, but I assure you it makes sense in its original context. Here goes. Let’s say I have freight… Read More Constraints in inherited list of abstract class

How to override method with inherited class in Kotlin?

I am exploring and actively using generics in production with Kotlin. Kotlin + generics is a big puzzle for me, so maybe you can explain and help me understand how it works here, compared to Java. I have class AbstracApiClient (not really abstract) class AbstracApiClient { open protected fun makeRequest(requestBuilder: AbstractRequestBuilder) { // … }… Read More How to override method with inherited class in Kotlin?