should I prefer a `sealed interface` over a `seale...
# getting-started
y
should I prefer a
sealed interface
over a
sealed class
if possible? or is there no particular reason to choose either, when multiple interfaces are not going to be implemented?
k
General preference in OOP is to code to interfaces and not to classes. What is “multiple interfaces are not going to be implemented”?
i
sealed interface. Common scanty is to use sealed interface to define a "base" state and then used data classes and data objects to extend this interface