+ 2

Java Question

Would it be safe to assume that extends is for classes and implements if for interfaces

3rd May 2019, 12:26 AM
Les.lie
2 odpowiedzi
+ 28
No it wouldn't be safe to assume as: 🔸A class can extends only a single class but can implement more than one interfaces. 🔸A interface can extends more than one interfaces. But they can't extend a class. I hope it was useful. (😅😅😅)
3rd May 2019, 1:11 AM
Aakaanksha 💕 [TheBraveCoders]
Aakaanksha 💕 [TheBraveCoders] - avatar