Re:Struct composition with Go
by jerf on Friday May 22, 2015 @10:39PM
(#9591809)
It isn't inheritance at all. Read the other replies. When an embedded struct has a method called on it, it is completely oblivious to what it is embedded in, no different than a direct call. It does not get any sort of reference to what would be a the superclass if there was any inheritance going on.
[ Parent
| on HN ]
There are no comments on this comment yet.