Question: java Given the following interfaces: interface Sauce { default boolean extraSauce( ) { return false ; }; } interface Topping{ String[ ] toppings( ); }
java
Given the following interfaces:
interface Sauce { default boolean extraSauce( ) { return false; }; } interface Topping{ String[ ] toppings( ); } Suppose that we wish to declare class Pizza that implements both of the above interfaces. What methods must class Pizza declare?
| Only method extraSauce() |
| Both methods topping() and extraSauce() |
| Only method topping() |
| Neither method topping() nor method extraSauce() |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
