In this chapter, I explain how types are combined to create new features. Go doesn’t use inheritance, which you may be familiar with in other languages and instead relies on an approach known as
composition. This can be difficult to understand, so this chapter describes some features covered in earlier chapters to set a solid foundation on which to explain the composition process. Table
13-1 puts type and interface composition in context.
Table 13-1Putting Type and Interface Composition in Context
Question | Answer |
|---|
What is it? | Composition ... |