Originally posted by gayathri mukkavilli:
...what does the following statement means
Product prod = new ProductImpl();
...
A new instance of ProductImpl is being created, and a reference to this object is being assigned to a variable of type Product. This is an
upcast, because ProductImpl implements the Product interface.
It's kind of a shorthand version of...