Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
interfaces
why exactly we use interfaces ??
1 ответ
0
If you want to make sure a class implements a specific method you use an interface. A class is required to implement this interface method. Otherwise the compiler will throw an exception.