Kotlin – Constructors
In this chapter, we will discuss Constructors in Kotlin. learn about constructors in Kotlin. Kotlin has two types of constructor - one is the primary constructor and the other is the secondary constructor.…
In this chapter, we will discuss Constructors in Kotlin. learn about constructors in Kotlin. Kotlin has two types of constructor - one is the primary constructor and the other is the secondary constructor.…
In this chapter, we will discuss Class & Object in Kotlin and learn the basics of Object-Oriented Programming (OOP) using Kotlin. We will learn about class and its object and…
In this guide, we will discuss Lists in Kotlin. Kotlin list is an ordered collection of items. A Kotlin list can be either mutable (MutableList) or read-only (List). The elements…
In this guide, we will discuss Collections in Kotlin. Collections are a common concept for most programming languages. A collection usually contains a number of objects of the same type…
In this guide, we will discuss Break and Continue in Kotlin. Kotlin Break Statement Kotlin break statement is used to come out of a loop once a certain condition is met. This…
In this guide, we will discuss While loop in Kotlin. Kotlin while loop executes its body continuously as long as the specified condition is true. Kotlin while loop is similar to Java while loop. Syntax…
In this guide, we will discuss For Loop in Kotlin. What are loops? Imagine a situation when you need to print a sentence 20 times on your screen. You can…
In this guide, we will discuss When Expression in Kotlin. Consider a situation when you have large number of conditions to check. Though you can use if..else if expression to handle the…
In this guide, we will discuss if else expression in Kotlin. Kotlin if else expressions works like an if...else expression in any other Modern Computer Programming. So let's start with our traditional if...else statement…
In this guide, we will discuss Control Flow in Kotlin. Kotlin flow control statements determine the next statement to be executed. For example, the statements if-else, if, when, while, for, and do are…