How to check if a method has been overridden in a data class object in Kotlin?

27 views Asked by At

My problem is differentiating the methods created by the data class with the methods created manually by the person.

I'm trying to find a way to differentiate the methods created by the data class with the methods created by the person to create generic functions. (Ex: toString()) I've already tried using "declaringClass", but it only resolves to class and not to data class.

0

There are 0 answers