In Ruby, an interface (mix-in) can provide not only method signatures (names and parameter lists), but also method code.
Posted: Sun May 15, 2022 10:12 am
In Ruby, an interface (mix-in) can provide not only method
signatures (names and parameter lists), but also method code. (It
can’t provide data members; that would be multiple inheritance.)
Would this feature make sense in Java? Explain.
signatures (names and parameter lists), but also method code. (It
can’t provide data members; that would be multiple inheritance.)
Would this feature make sense in Java? Explain.