brainfck.org
Topics Books Journal Tags Search

Golang/Composition

  • similar to

    Classes implement an interface—which is the contract the base class offers. Functionality reuse happens through having references to objects, rather than deriving from classes. This is why many people, including people who code in Go, have the Composition Over Inheritance principle


No notes link to this note


prev post next post



Powered by Hugo, based on the Er theme.