Before you create objects in Kotlin, you need to define a class . A class is a blueprint for the object. We can think of class as a sketch (prototype) of a house. It contains all the details about the floors, doors, windows etc.
Before you create objects in Kotlin, you need to define a class . A class is a blueprint for the object. We can think of class as a sketch (prototype) of a house. It contains all the details about the floors, doors, windows etc.