Join Slack
Powered by
<How interface can enforce "static" methods in sub...
# stackoverflow
u
user
07/05/2022, 7:51 AM
How interface can enforce "static" methods in sub-classes in Kotlin
I'm implementing a customized Parcelable interface using Kotlin (Original Android's API:
https://developer.android.com/reference/kotlin/android/os/Parcelable
). How can I enforce a static field (i.e. companion object) similar to how the CREATOR field is enforced?
4
Views
Open in Slack
Previous
Next