Inheritance All classes in Kotlin have a common superclass, Any, which is the default superclass for a class with no supertypes declared: Any has three methods: equals(), hash Code(), and to String().