4 ms·
A major difference is that, in Java, the only way to make a class implement another interface is by changing its source. In Swift, on the other hand, one can m
by Someone 11y ago
A major difference is that, in Java, the only way to make a class implement another interface is by changing its source.
In Swift, on the other hand, one can make a class conform to a protocol, even if one does not have access to its source code (https://www.andrewcbancroft.com/2014/12/02/send-a-type-to-obedience-school-using-swift-extensions-for-additional-protocol-conformance https://www.andrewcbancroft.com/2014/12/02/send-a-type-to-ob...)