Methods

Python

Python - Static and Class Methods

Python provides three distinct method types: instance methods, class methods, and static methods. Instance methods are the default—they receive self as the first parameter and operate on individual…

Read more →
Go

Go Structs: Custom Types and Methods

Structs are the backbone of data modeling in Go. Unlike languages with full object-oriented features, Go takes a minimalist approach—structs provide a way to group related data without the baggage of…

Read more →
Go

Go Methods: Value vs Pointer Receivers

Methods in Go are functions with a special receiver argument that appears between the func keyword and the method name. Unlike languages with class-based inheritance, Go attaches methods to types…

Read more →