CS计算机代考程序代写 b’1125c0a6abee61bccdec2b588b95a1193d24e5′

b’1125c0a6abee61bccdec2b588b95a1193d24e5′

blob 457�package programmingexample6;

public class Decorator extends Product {

private Product product;

public Decorator(Product product) {
this.product = product;
}

@Override
public double getPrice() {
return product.getPrice();
}

@Override
public int getWeight() {
return product.getWeight();
}

@Override
public double getShippingCost() {
return product.getShippingCost();
}

}