22/02 Study daily record
A Closer Look at Interfaces and Methods II Embedding Embedding is Go's answer to subclassing. When you embed a type inside another, the embedded type is called the inner type while the other type is called the outer type. The outer type has access to all the exported fields of the inner type. The outer and inner types has to be properly initialized. Embessing is the closest thing in go to su..
Go/Mastering Go
2022. 2. 23. 12:14