DEV Community

Cover image for Go is not OOP

Go is not OOP

Python64 on February 27, 2020

Go is a programming language that was created as an experiment. If you programmed in languages like Java, C#, C++ or Python you may be used to ha...
Collapse
 
fernandosolivas profile image
fernandosolivas

Python64 nice explanation about Go but I have some considerations.

Only inheritance is a characteristic of OOP because in Go, Composition have prevalence over inheritance. With that said, Go can achieve Polymorphism, Abstraction and Encapsulation.

I can agree, Go isn't a language naturally designed to OOP but you can achieve at least the most important things of OOP, so in my opinion.

Go is awesome, we just need separate concepts from languages characteristics.

Collapse
 
juniorrubyist profile image
Joseph Geis

And this is why Iā€™m sticking to python šŸ˜€