Re:Generating a Java program with 90% less code
by kjeetgill on Wednesday December 04, 2019 @12:11PM
(#21704114)
Interfaces are as much a part of OOP as inheritance. Go is as OOP heavy as Java. They differ mostly in how/when an "class" is bound to an interface. Java declares up front, Go does this implicitly at usage sites aka static duck-typing (which is great!).
That said, I think OOP education focused a lot on inheritance during Java's rise and that was mostly a mistake in hindsight.
That said, I think OOP education focused a lot on inheritance during Java's rise and that was mostly a mistake in hindsight.