What is the difference betweenCoffeeInterface<Beverage> cup1 = new Coffee<Beverage>()
and
Coffee<Beverage> cup2 = new Coffee<Beverage>()
Coffee
is a class that extends the CoffeeInterface
Is cup1
an object or can it be used as one.
Are there any differences betweeen cup1
and cup2
?