I have a interface ShippingProduct and 2 classes ShippingProductStandard, ShippingProductGurtmass.
The class ShippingProductStandard implements the interface ShippingProduct.
public class ShippingProductStandard implements ShippingProduct {
...
}
Now i want that, the class ShippingProductGurtmass extends ShippingProductStandard and implements ShippingProduct. Do i need to implement the interface ShippingProduct like that:
public class ShippingProductGurtmass extends ShippingProductStandard implements ShippingProduct {
...
}
Or do i only need to extend the class ShippingProductStandard and it will implement the interface ShippingProduct from the parent class automatic?
public class ShippingProductGurtmass extends ShippingProductStandard{
...
}