+ 2
Java Question
Would it be safe to assume that extends is for classes and implements if for interfaces
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.
(😅😅😅)