Why I receive Interface … does not have constructors (I have Kotlin and java classes)?

According to the language documentation, a property declared in an Interface is abstract. Your declaration:

val spec ImageSizeSpec

is therefore abstract and you must provide an overridden declaration in any class that implements the Interface. Your ImageSizeProviderImpl doesn’t contain an overridden declaration of spec.

If you create an instance of ImageSizeProvider, this will fail because the variable spec is not initialized.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top