+ 1
When is the best time to use an interface
2 ответов
+ 1
If you want to achieve 100% abstraction or you want to use multiple inheritance. These are specific conditions when you have to use interface otherwise things can be done with abstract class.
0
if u have 2 or + class that have to respect some condition I can use an interface and implement those classes to the interface