Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Understanding Different Types of Classes in Kotlin - A Comprehensive Guide

Philipp Lackner via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn about the complete range of class types available in Kotlin through this comprehensive video tutorial. Master the implementation and usage of normal classes, data classes, objects for singleton patterns, data objects, enum classes for fixed sets of values, sealed classes for restricted hierarchies, abstract classes for shared functionality, open classes for inheritance, value classes for performance optimization, annotation classes for metadata, anonymous classes for one-time implementations, and inner classes for nested functionality. Follow along with detailed explanations and practical examples that demonstrate how each class type serves different programming needs and best practices in Kotlin development.

Syllabus

00:00 - Intro
00:28 - Normal classes
08:47 - Singleton Object Declaration
09:53 - Data Object
12:33 - Enum classes
17:01 - Sealed classes
22:29 - Abstract classes
26:46 - Anonymous classes
28:15 - Value classes
30:38 - Annotation classes
32:57 - Inner classes
34:27 - Outro

Taught by

Philipp Lackner

Reviews

Start your review of Understanding Different Types of Classes in Kotlin - A Comprehensive Guide

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.