{"id":270,"date":"2019-10-15T02:25:40","date_gmt":"2019-10-15T02:25:40","guid":{"rendered":"https:\/\/golangbyexamples.com\/?p=270"},"modified":"2019-11-13T16:15:14","modified_gmt":"2019-11-13T16:15:14","slug":"oop-polymorphism-in-go-complete-guide","status":"publish","type":"post","link":"https:\/\/golangbyexamples.com\/oop-polymorphism-in-go-complete-guide\/","title":{"rendered":"OOP: Polymorphism in Go Complete Guide"},"content":{"rendered":"\n

Before understanding, polymorphism lets first understand what polymorphism is. <\/p>\n\n\n\n

“Same name many forms”<\/p>\n\n\n\n

In the programming context, we also come across several use cases in which behavior is similar across different context. It is better for such behavior to be represented by the same name. This is where polymorphism comes into the picture in the programming context. From a programming perspective, there are two kinds of polymorphism possible-<\/p>\n\n\n\n