Golang: Composition Over Inheritance



Golang: Composition Over Inheritance

Golang: Composition Over Inheritance

How does Go handles composition over inheritance? What does it mean to be a truly object oriented programming language when there isn’t inheritance at all?

Go is touted to be an object-oriented programming language. But…
underneath it all is something else. Many people have wondered why Go team don’t use inheritance? Normally in OOP, inheritance is used. However, Go doesn’t use inheritance. Instead it prefers composition over inheritance. And the big question is why?

Let’s find the answer in this video. Enjoy!


Golang Dojo is all about becoming Golang Ninjas together. You can expect all kinds of Golang tutorials, news, tips & tricks, and my daily struggles as a Golang developer. Make sure to subscribe if you look forward to such content!

Get Your Golang Cheat Sheet! – https://golangdojo.com/cheatsheet
Git repos & notes – https://golangdojo.com/resources

Golang Basics – https://www.youtube.com/watch?v=VTJ8qnBevcs&list=PLve39GJ2D71xX0Ham0WoPaYfl8oTzZfN6
Golang Informative -https://www.youtube.com/watch?v=0vOu8_ZYpz8&list=PLve39GJ2D71y5v3_Arfpx8cKBcBn1VS91


Timestamps
0:00 Intro
1:41 What is Inheritance?
4:09 What is Composition?
5:16 How Go Uses Composition
7:20 Outro


#golang #goprogramming #golangdojo

Comments are closed.