Polymorphism is the provision of a single interface to entities of different types. Basically, it allows different data types respond to same function. So the same function shapes for different data types to accomplish the same behaviour. Elixir language has ‘protocols’ to implement polymorphism with a clean way. Andrew Johnson / Getty ImagesLets implement a basic protocol that convert Kelvin and
![Polymorphism in Elixir](https://cdn-ak-scissors.b.st-hatena.com/image/square/cf0d84cd6614ea83bd7858ff8ca727c808c94f75/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A768%2F1%2APUH1L-4N1AxysBkDgA0nNg.jpeg)