# Kotlin Classes: Syntax, Properties, Constructors, Functions, and Inheritance

DevFeed: [Kotlin Classes: Syntax, Properties, Constructors, Functions, and Inheritance](<https://devfeed.tech/articles/classes-in-kotlin-more-power-with-less-effort-kad-03-27140.md>)

Original publisher: [Read original article](<https://antonioleiva.com/classes-kotlin>)

Published: 2016-12-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Java](<https://devfeed.tech/topics/java.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [properties](<https://devfeed.tech/tags/properties.md>), [property](<https://devfeed.tech/tags/property.md>), [val](<https://devfeed.tech/tags/val.md>), [var](<https://devfeed.tech/tags/var.md>)

## AI overview

A tutorial introducing Kotlin classes and comparing them with Java. It explains class declarations, properties instead of fields, constructors using val or var, functions, and Kotlin's default-closed inheritance behavior with the open modifier.

## Source excerpt

Everything Android, Kotlin and other random topics