Jay
03/16/2019, 12:22 PMkarelpeeters
03/16/2019, 12:24 PMJay
03/16/2019, 12:25 PMSomeInterface by SomeImplementation()
because SomeImplementation
is abstract and cannot be instantiated.Jay
03/16/2019, 12:26 PMDico
03/16/2019, 12:27 PMDico
03/16/2019, 12:28 PMDico
03/16/2019, 12:28 PMJay
03/16/2019, 12:30 PMDico
03/16/2019, 12:31 PMDico
03/16/2019, 12:34 PMJay
03/16/2019, 12:34 PMclass MyClass :
SomeInterface by Compose<AbstractImplementation, MyClass>() {
// Must override parts of SomeInterface not implemented in AbstractImplementation
}
or alternatively you could compose two different abstract implementations if they don’t overlap, or perhaps have some rule for which one gets used if they do overlap.Dico
03/16/2019, 12:36 PMAny
twice (diamond problem).Dico
03/16/2019, 12:36 PMJay
03/16/2019, 12:37 PMDico
03/16/2019, 12:39 PMDico
03/16/2019, 12:40 PMTimmy
03/16/2019, 6:21 PMJay
03/16/2019, 7:21 PM