Etiqueta class

GO and the OOP

Go and OOP
Go is not designed as a purely object-oriented programming (OOP) language in the traditional sense, like Java. However, Go includes certain features that allow for the use of OOP principles, but in a simplified and more flexible manner.

Java Class Structure

In Java, the basic building blocks are the Classes, when you define a class you will describe all the parts and characteristics of one of those building blocks. The use of the classes is to instantiate/create Objects. An object is a runtime instance of a class in memory.
A class has two primary elements the fields and methods that provides the functionality to the objects.
Als the class structure has the comments that plays a crucial role in describing the functionality of methods or the class itself, making them valuable for understanding and maintaining the code