Kotlin override fun with subtype
问题 Im having trouble inheriting an interface containing a method/fun of a base type, that i would like to override as a subtype in the class implementing it. So far i have the interface interface IModel { fun convert(dataModel: BaseDataModel) } And the class implementing it: class SettingsModel: IModel { override fun convert(dataModel: BaseDataModel) { // Conversion of models here } } And i also have the SettingsDataModel which is: class SettingsDataModel: BaseDataModel() { } What i'm trying to