How would I do something like “I have a superclass...
# getting-started
s
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
abstract class?
💯 1
s
@scottiedog45: If you do that, can you still say that the subclasses are an instance of the superclass? Does Liskov still hold?
s
I need each subclass to implement the same, method, but differently, as a requirement.
Got it! Thanks 😃