Go Language Object Oriented Programming: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
Go is an object oriented language, but the object orientation programming model is relatively simple, compared with other object oriented languages. It has been said about Go that is "weakly" object-oriented. | Go is an object oriented language, but the object orientation programming model is relatively simple, compared with other object oriented languages. It has been said about Go that is "weakly" object-oriented. | ||
Go does not use the term "[[Object-Oriented_Programming#Class|class]]". | Go does not use the term "[[Object-Oriented_Programming#Class|class]]". It uses <code>struct</code> instead, which is the encapsulation of data and methods. |
Revision as of 23:27, 14 August 2023
Internal
Overview
Go is an object oriented language, but the object orientation programming model is relatively simple, compared with other object oriented languages. It has been said about Go that is "weakly" object-oriented.
Go does not use the term "class". It uses struct
instead, which is the encapsulation of data and methods.