Problem Statement
How do you declare a basic class in Kotlin?
Explanation
Kotlin classes are declared using the class keyword followed by the class name, and if the class has no body you can omit the curly braces. Classes are public and final by default unlike Java where they are package-private, and you need to explicitly mark classes as open to allow inheritance.
The primary constructor can be declared in the class header like class Person open paren val name colon String close paren making property declaration and initialization very concise. Kotlin's class syntax reduces boilerplate significantly compared to Java while maintaining full object-oriented capabilities.
