|
|
|
|
|
by fauigerzigerk
3143 days ago
|
|
Java interfaces don't have properties either (nor do Java classes), and you can explicitly state interface conformance in Go as well as others have explained elsewhere in this debate: https://news.ycombinator.com/item?id=15672619 What Java does have (since 8) is default method implementations in interfaces. |
|
(Another useful link explaining that statements resembling instance variables in interfaces are in fact constants: https://coderanch.com/t/178630/certification/Instance-variab...)