Golang way of inheritance

Go claims itself as an object oriented programming language. Of course it is. But developers who came from Java or C#, would realise that OOPS in Go is not same as other languages. Let's see how Golang handles Inheritance.Inheritance - From Wikipedia - the mechanism of basing an object or class upon another object (prototype-based... Continue Reading →

OOPS – Attribute vs State

In Object oriented programming objects are the fundamental unit. Usually an object is defined to have two characteristics. State and behaviorState is defined through variables, properties or functions (getter and setter) depends on the language. Behavior is usually defined through functions. Most of the times, the term state represent both attribute and state of an... Continue Reading →

Up ↑