Orhan Tozan05/19/2020, 11:39 PM
araqnid05/20/2020, 1:01 AM
factory function defined in common, and then an implementation of the interface and an
for the factory function defined in each platform.
Erik Christensen05/20/2020, 1:41 AM
in C or C++ (or compiling different source files for each platform that implement functions defined in a common header file). You could
an interface in common code, but then have the
interface be a Java Standard Library interface on JVM and something else on a native platform where that interface doesn't exist. You can't accomplish that with traditional interfaces and implementations. There are situations where you could use the two approaches interchangeably, but that's not always the case.
Orhan Tozan05/20/2020, 2:27 AM
gildor05/20/2020, 4:11 AM
araqnid05/20/2020, 4:15 AM
russhwolf05/20/2020, 12:37 PM
kpgalligan05/20/2020, 1:47 PM
is just shorthand for an interface with one function.
Orhan Tozan05/20/2020, 1:51 PM
kpgalligan05/20/2020, 1:51 PM
as an example (yes, I know that’ll be standard in 1.4)