Kotlin Lists
In the previous chapter we talked about the arrays or arrays and we saw all the potential that it had, but one of the biggest drawbacks was the limitation when…
Python Courses & Exercises with solutions !
In the previous chapter we talked about the arrays or arrays and we saw all the potential that it had, but one of the biggest drawbacks was the limitation when…
A string variable is an object of type String, and since an object in Kotlin has a number of methods and properties, a String object is itself equipped with a…
The inheritance in Kotlin language is almost the same as Java with a slight modification. Here is the general systax of Kotlin inheritance in a simple example: // Base parent…
Before you start programming Mod, I advise you to check that a simple program in Kotlin compiles and runs well from your environment.There are different ways to create your first…
0 - Kotlin Control structures Control structure The control structures are similar to those of java (if, for, while, switch, ...), except that most Kotlin structures are expressions, and therefore…
Kotlin Class To declare a class in Kotlin, we use the class statement followed by the name of the class, and inside we introduce the attributes (variables) and methods of…
1 - Declarations of variables In Kotlin we distinguish the variables whose value we can change, and the immutable variables that are not quite constants: the keyword val allows to…