RSS Amplifier

Go Tutorial - Learn Go from the Basics with Code Examples on golangbot.com · May 3, 2020

Structs Instead of Classes - OOP in Go

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Welcome to tutorial no. 26 in Golang tutorial series. Is Go Object Oriented? Go is not a pure object oriented programming language. This excerpt taken from Go’s FAQs answers the question of whether Go is Object Oriented. Yes and no. Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy. The concept of “interface” in Go provides a…

Welcome to tutorial no. 26 in Golang tutorial series. Is Go Object Oriented? Go is not a pure object oriented programming language. This excerpt taken from Go’s FAQs answers the question of whether Go is Object Oriented. Yes and no. Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy. The concept of “interface” in Go provides a different approach that we believe is easy to use and in some ways more general.

Read on golangbot.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.