Employers
Jobseekers
Recruiting Partners
Login
Join Hyring
Join Hyring
Lesson
Introduction
Get Started
Syntax
Output
Comments
Variables
Data Types
Operators
Strings
Booleans
If...Else
When
While Loop
Break/Continue
Arrays
For Loop
Ranges
Functions
OOP
Classes/Objects
Constructors
Class Functions
Inheritance
Back to lesson
Kotlin Classes and Objects
A Minimal Class
Class With Properties
Multiple Independent Objects
Run
Language:
Kotlin
Change Theme
Change orientation
class Person fun main() { val person = Person() println(person) }
class Person fun main() { val person = Person() println(person) }
Output
Click Run to execute this code.