Interfaces
Last updated
What is Interfaces?
Interfaces in Kotlin are blueprints for classes, defining a set of properties and abstract methods that implementing classes must provide. They allow you to define a contract, ensuring that any class implementing the interface will have specific functionalities. Unlike classes, interfaces cannot store state; they only declare what a class should do, not how it should do it. A class can implement multiple interfaces, enabling a form of multiple inheritance of behavior.
Free resources to learn Interfaces
- Official docsInterfaces
- VideoWhat are Kotlin Interfaces Used For and Why?
More in stage 30: Coroutines Builders
Interfaces: common questions
Can I learn Interfaces in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Interfaces in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Interfaces tutorial for beginners?
It is lesson 87 of 153 in the free Kotlin roadmap, in stage 30, Coroutines Builders. If you are new to Kotlin, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.