3 ms·
Java's interfaces are nominal. What you're describing is called structural interfaces, and they exist in other languages like Scala.
by za3faran 3y ago
Java's interfaces are nominal. What you're describing is called structural interfaces, and they exist in other languages like Scala.