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

package programmingexample3;

public class PlasticToyCar extends ToyCar {
private int price;

public PlasticToyCar(int price){
this.price = price;
}

@Override
public int getPrice() {
return price;
}

@Override
public String toString(){
return super.toString()+” price=”+price;
}
}