Declaring the void eat() method in one or both of the interfaces doesn't affect anything.
You can define method in an interface with a default keyword
The HouseCat class that implements the Feline interface, is correctly implementing the declared method.
Login in to like
Login in to comment