+ 1

When is the best time to use an interface

18th Oct 2016, 10:38 AM
Victor Ogudu
Victor Ogudu - avatar
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.
18th Oct 2016, 2:15 PM
Piyush Marda
Piyush Marda - avatar
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
18th Oct 2016, 12:44 PM
gol_roger
gol_roger - avatar