CS计算机代考程序代写 package programmingexample6;

package programmingexample6;

public abstract class Product {

public abstract double getPrice();

public abstract int getWeight();

public double getShippingCost() {
//Shipping is $2 per kg rounded up to the nearest kg.
return (getWeight()/1000 + 1)*2;
}

}