package com.itheima.domain;
public class GameCurrency extends GameDeal{
/* 1.count 数量count
2.startingAmount 起售金额
* */
private int count;
private double startingAmount;
public GameCurrency() {
}
/* //两个独有属性的 在这里用不上
public GameCurrency(int count, double startingAmount) {
this.count = count;
this.startingAmount = startingAmount;
}*/
//2个自己独有的属性,5个继承的属性
//不能直接通过 访问对象去访问,要调用构造方法,调用super去赋值
public GameCurrency(int id, String gameName, String gameArea, String gameBusiness, String gameRegisterDate, int count, double startingAmount) {
super(id, gameName, gameArea, gameBusiness, gameRegisterDate);
this.count = count;
this.startingAmount = startingAmount;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public double getStartingAmount() {
return startingAmount;
}
public void setStartingAmount(double startingAmount) {
this.startingAmount = startingAmount;
}
@Override
public String toString() {
return "GameCurrency{" +
"count=" + count +
", startingAmount=" + startingAmount +
'}';
}
}