Articles in this series
Let's understand ' while ' loop first. As we all know loops are used in programming languages ( Here, Kotlin ) to perform some task repeatedly following some conditions. Let's understand this by a real life example, assume you are eating Pizza till ...
When I was studying Constructor I was bombarded with multiple questions in my mind like: What actually Constructor is? Why there is need of Constructor? Can't we create objects without Constructor? Why visibility modifiers are changing it's naming c...
Just like Lists & Maps, Set is also a collection in Kotlin. In List we can have repeatable elements but Set is a collection which contains only unique value. Let's see the declaration of Set : fun main() { val numSet = setOf(1, 1, 2, 3, 4, 5) printl...