So an important aspect I forgot to remember is that interfaces are not considered classes, therefore it is possible to inherit multiple interfaces with the extends keyword!
For example,
interface CanFly{
void fly();
}
interface CanSwim{
void swim();
}
interface All extends CanFly, CanSwim{
}
This little information will help you with this task
Archived
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Lukasz
8 November 2019, 22:37
Yes, it's keyword here - extends
0
Guadalupe Gagnon
21 October 2019, 13:47
Nice little tip!
0