Does Golang Follow the Object Oriented Programming Paradigm?
Too Long; Didn't Read
Many are wondering whether Golang is a language that can apply the Object Oriented Programming paradigm. The answer is yes, in GO we can create an Object from a class/entity, a class in GO is also called a lightweight struct. The concept of Object-Oriented Programming has four main concepts, namely abstraction, encapsulation, inheritance, and polymorphism. In this article, we will try to answer the question of whether GO can implement the OOP paradigm. We will create two employee abstractions that will be used by the payroll department and manager.