Which, inserted at line 3 of the TestDrink class, demonstrates the "program to an interface" principle?

Refer to the Exhibit.

Which, inserted at line 3 of the TestDrink class, demonstrates the
“program to an interface” principle?

Refer to the Exhibit.

Which, inserted at line 3 of the TestDrink class, demonstrates the
“program to an interface” principle?

A.
Drinkable aDrink = DrinkableFactory.getDrinkable();

B.
Drinkable aDrink = new Drinkable();

C.
Tea aDrink = new Drinkable();

D.
Tea aDrink = new Tea();



Leave a Reply 0

Your email address will not be published. Required fields are marked *