Static Factory Methods
known from Java have their place also in Kotlin, although they look and behave a bit different because there is no static
word in Kotlin. Here I’ll try to show how to use companion object
for Static Factory Methods
and more. PS: This whole post was supposed to be about Factory Method
with just a short mention about static factory methods, but the topic becomes more interesting than I thought :)
Kotlin Static Factory Methods
