class BasicPlan{
private int basicCharge; //基本料金
private int include; //無料通話分(この料金分までの通話に対する料金は基本料金に含まれる)
private int callingRate; //1分あたりの通話料金
private int packetRate; //100パケット当たりのパケット料金
BasicPlan
(String name,
int basicCharge,
int include,
int callingRate,
int packetRate
){ this.name = name;
this.basicCharge = basicCharge;
this.include = include;
this.callingRate = callingRate;
this.packetRate = packetRate;
}
return name;
}
int getBasicCharge(){
return basicCharge;
}
int getInclude(){
return include;
}
int getCallingRate(){
return callingRate;
}
int getPacketRate(){
return packetRate;
}
int calcCharge(int minutes,int packet){
/*引数で受け取った通話時間(分)とパケット数に応じた料金を計算し返却する
料金=基本料金+無料通話分を差し引いた通話料金+パケット料金*/
}
}
Y2xhc3MgQmFzaWNQbGFuewoJcHJpdmF0ZSBTdHJpbmcgbmFtZTsJCSAgIC8v44OX44Op44Oz5ZCNCglwcml2YXRlIGludCBiYXNpY0NoYXJnZTsgICAgICAgLy/ln7rmnKzmlpnph5EKCXByaXZhdGUgaW50IGluY2x1ZGU7CSAgICAgICAvL+eEoeaWmemAmuipseWIhijjgZPjga7mlpnph5HliIbjgb7jgafjga7pgJroqbHjgavlr77jgZnjgovmlpnph5Hjga/ln7rmnKzmlpnph5HjgavlkKvjgb7jgozjgospCglwcml2YXRlIGludCBjYWxsaW5nUmF0ZTsgICAgICAgLy8x5YiG44GC44Gf44KK44Gu6YCa6Kmx5paZ6YeRCglwcml2YXRlIGludCBwYWNrZXRSYXRlOyAgICAgICAgLy8xMDDjg5HjgrHjg4Pjg4jlvZPjgZ/jgorjga7jg5HjgrHjg4Pjg4jmlpnph5EKCQoJQmFzaWNQbGFuKFN0cmluZyBuYW1lLGludCBiYXNpY0NoYXJnZSxpbnQgaW5jbHVkZSxpbnQgY2FsbGluZ1JhdGUsaW50IHBhY2tldFJhdGUpewoJCXRoaXMubmFtZSA9IG5hbWU7CgkJdGhpcy5iYXNpY0NoYXJnZSA9IGJhc2ljQ2hhcmdlOwoJCXRoaXMuaW5jbHVkZSA9I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