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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!