Data class inheritance

Yes, that’s correct. It’s impossible to generate a copy() method that could copy the properties of a non-data class, because there is no way to establish the correspondence between constructor parameters and properties.

3 Likes