|
|
|
|
|
by Cthulhu_
1373 days ago
|
|
I think the word "interface" means something conceptually different in different languages. in Java it means "you should implement this contract" in Typescript it means "this data type has this particular shape. It may have methods, too". in Go it means "I'd like users of this code to implement these methods" (client interfaces). In all cases you have to work differently with them. It's not even about OOP, I think, to the point where I'm not sure now if the keyword 'interface' is part of OOP at all. |
|