Description
Basics of Object-Oriented Programming in Kotlin
Object-Oriented Programming in Kotlin Course is a course that helps to start using the main building blocks of OOP in Kotlin easily. You are going to start by learning how to declare classes, how to declare and use properties and methods, and use method overloading. The course will also present special visibility modifiers and extension functions of Kotlin, which enable more elegant and flexible usage of the code than classic object-oriented languages.
Constructors and Inheritance: Understanding Constructors and Inheritance
Moving along, the Object-Oriented Programming in Kotlin Course will describe how Kotlin will handle object construction, initialization. You will learn to tell the distinction between a primary and a secondary constructor, you will see how to use init blocks to initialize elements during setup up and you will get to know when you can and should use lateinit to construct objects when initialization must be delayed. This then naturally moves on to inheritance, so how to extend, override properties and methods, and how to use polymorphism, and mentions that Kotlin defaults classes as final and the necessity to use open.
Kotlin Class Advanced Features
To complete your understanding, the course drifts into the deeper Kotlin-related features. You will learn how to use companion objects and singletons to share resources, use value classes in the form of simplification of work with primitive data types, and data classes to represent values more cleanly. Before taking a final, we consider sealed classes and interfaces that help ensure more well-structured and risk-free hierarchies in your programming. At the end, you will be ready to develop a modern and idiomatic Kotlin application through proper object-oriented habits.
Demo
Table of Content

Reviews
Clear filtersThere are no reviews yet.