https://kotlinlang.org logo
Title
s

scottiedog45

08/15/2019, 2:59 PM
How would I do something like “I have a superclass (which has some logic in a lifecycle method that I want to trickle down to fragments), and I have an interface. I don’t want(?) the superclass to implement the methods in the interface, but everything that inherits from the superclass should implement the interface”.
k

kqr

08/15/2019, 3:20 PM
abstract class?
💯 1
s

Steve

08/15/2019, 3:57 PM
@scottiedog45: If you do that, can you still say that the subclasses are an instance of the superclass? Does Liskov still hold?
s

scottiedog45

08/15/2019, 4:37 PM
I need each subclass to implement the same, method, but differently, as a requirement.
Got it! Thanks 😃