Skip to main content

2 posts tagged with "Companion Objects"

The 'Companion Objects' tag archive on our blog features a variety of articles and tutorials that delve into the concept and application of Companion Objects in Kotlin.

View All Tags

Exploring Kotlin's Companion Objects

· 9 min read
Engineering Team

In this tutorial, we will explore Kotlin's companion objects and learn how they can be used in software development. Companion objects in Kotlin are special objects that are associated with a class and have a similar behavior to static members in Java. They can be created within a class and provide a way to define properties and functions that can be accessed without having an instance of the class.

Exploring Kotlin's Object-Oriented Programming Features

· 9 min read
Engineering Team

exploring kotlins object oriented programming features

Introduction

In this tutorial, we will explore Kotlin's object-oriented programming (OOP) features. Kotlin is a modern programming language that is widely used for Android app development. It combines the best features of Java and other programming languages, making it a powerful tool for developing object-oriented applications. In this tutorial, we will cover the basics of classes and objects, inheritance, interfaces, data classes, enums, sealed classes, and companion objects in Kotlin.