Extend data class in Kotlin
Data classes seem to be the replacement to the old-fashioned POJOs in Java. It is quite expectable that these classes would allow for inheritance, but I can see no convenient way to extend a data class. What I need is something like this: open data class Resource (var id: Long = 0, var location: String … Read more