Inheritance
Learn about inheritance in Go.
We'll cover the following
Redefining vs. embedding types
Go type
system is pragmatic. It is not object-oriented in a sense
that C++ or Java is. You cannot really inherit structs or interfaces
(there is no subclassing), but you can put them together (embed) to
make more complicated structs or interfaces.
Get hands-on with 1400+ tech skills courses.