Object-Oriented Programming in Kotlin

Learn the object-oriented programming in Kotlin from the first object-oriented app to advanced structures in this online course.

Introduction to object-oriented programming in Kotlin

Lesson 1

Introduction to object-oriented programming in Kotlin

In this tutorial, we'll introduce object-oriented programming in Kotlin, explain historical origins and terms such as classes, properties, and methods.
Written by Samuel Kodytek
FreeUnrated Show description
First object-oriented app in Kotlin - Hello object world

Lesson 2

First object-oriented app in Kotlin - Hello object world

In this tutorial we'll create our first object-oriented app in Kotlin - Hello object world. We'll create classes, attributes and parameterized methods.
Written by Samuel Kodytek
FreeUnrated Show description
RollingDie in Kotlin - Constructors and random numbers

Lesson 3

RollingDie in Kotlin - Constructors and random numbers

In this tutorial, we'll learn how to use constructors and a random number generator. We'll program a rolling die in Kotlin, as the first part of our arena.
Written by Samuel Kodytek
FreeUnrated Show description
Reference data types in Kotlin

Lesson 4

Reference data types in Kotlin

In this tutorial, we'll explain in detail how Kotlin works with references (objects) in memory. We'll describe the garbage collector.
Written by Samuel Kodytek
FreeUnrated Show description
Warrior for the arena in Kotlin

Lesson 5

Warrior for the arena in Kotlin

In this Kotlin tutorial, we'll create a warrior object (class). Its instances will battle in the arena next time.
Written by Samuel Kodytek
FreeUnrated Show description
Arena with warriors in Kotlin

Lesson 6

Arena with warriors in Kotlin

In this tutorial, we'll finish our arena with warriors. As a result, we'll have an object-oriented Kotlin application simulating a board game.
Written by Samuel Kodytek
FreeUnrated Show description
Inheritance and polymorphism in Kotlin

Lesson 7

Inheritance and polymorphism in Kotlin

In this Kotlin tutorial, we'll go over object inheritance. We'll learn how to reuse code and explain what the protected access modifier is.
Written by Samuel Kodytek
FreeUnrated Show description
Arena with a mage in Kotlin (inheritance and polymorphism)

Lesson 8

Arena with a mage in Kotlin (inheritance and polymorphism)

In this Kotlin tutorial, we'll learn to call base constructors, override methods and put what we know about inheritance and polymorphism to the test.
Written by Samuel Kodytek
FreeUnrated Show description
Companion objects in Kotlin

Lesson 9

Companion objects in Kotlin

In this Kotlin lesson, we'll learn companion objects which is an alternative of static/class properties in other languages.
Written by Samuel Kodytek
FreeUnrated Show description
Properties in Kotlin

Lesson 10

Properties in Kotlin

In this Kotlin tutorial, we'll declare getter and setter properties, private setters, backing properties and use syntax for even better encapsulation.
Written by Samuel Kodytek
FreeUnrated Show description
Date and Time in Kotlin - Creating and formatting

Lesson 11

Date and Time in Kotlin - Creating and formatting

We'll introduce new LocalDate, LocalTime, and LocalDateTime classes which are available since Java 8. We'll create instances and format output values.
Written by Samuel Kodytek
FreeUnrated Show description
Date and Time in Kotlin - Modifying and intervals

Lesson 12

Date and Time in Kotlin - Modifying and intervals

In this Kotlin tutorial, we'll convert between LocalDateTime and other data types, modify the inner value and introduce durations and periods.
Written by Samuel Kodytek
FreeUnrated Show description
Date and Time in Kotlin- Parsing and comparing

Lesson 13

Date and Time in Kotlin- Parsing and comparing

In this Kotlin tutorial we'll learn how to parse date and time using a custom pattern, compare, and introduce other classes such as Instant and time zones.
Written by Samuel Kodytek
FreeUnrated Show description
Diary with a database in Kotlin

Lesson 14

Diary with a database in Kotlin

In this Kotlin tutorial, we'll create an electronic diary with a database using the List collection. It'll be able to add, remove, and search entries.
Written by Samuel Kodytek
FreeUnrated Show description
Diary with a database in Kotlin (finishing)

Lesson 15

Diary with a database in Kotlin (finishing)

We'll create a user layer for the electronic diary in Kotlin and finish it. We'll learn how to sanitize user's inputs while parsing a date and time.
Written by Samuel Kodytek
FreeUnrated Show description
Interfaces in Kotlin

Lesson 16

Interfaces in Kotlin

In this tutorial, we'll learn about interfaces in Kotlin, how to auto-implement them with IntelliJ, and how to bypass multiple inheritance with them.
Written by Samuel Kodytek
FreeUnrated Show description
Type casting and object hierarchy in Kotlin

Lesson 17

Type casting and object hierarchy in Kotlin

We'll learn how to cast an instance to another data type using interfaces in Kotlin. We'll create an object hierarchy.
Written by Samuel Kodytek
PROUnrated Show description
Abstract class, comparing and operators in Kotlin

Lesson 18

Abstract class, comparing and operators in Kotlin

This tutorial explains abstract classes in Kotlin. We'll learn about interfaces, implement our own comparing with Comparable, and overload an operator.
Written by Samuel Kodytek
PROUnrated Show description
Enumerated types and constants in Kotlin

Lesson 19

Enumerated types and constants in Kotlin

This lesson is about enumerated types (enums) in Kotlin. We'll also learn to use their contructor and implement constants.
Written by Samuel Kodytek
PROUnrated Show description
Equals(), clone() and data classes in Kotlin

Lesson 20

Equals(), clone() and data classes in Kotlin

In this tutorial, we'll override the equals() method so it can compare objects via their internal state. Then we'll explain cloning and data classes.
Written by Samuel Kodytek
PROUnrated Show description
Final OOP in Kotlin - Boxing, packages, and more

Lesson 21

Final OOP in Kotlin - Boxing, packages, and more

In the last Kotlin tutorial, we'll go over boxing and unboxing, methods with dynamic number of parameters, package system, and nested classes.
Written by Samuel Kodytek
PROUnrated Show description


 

Activities (4)