質問編集履歴

1

サンプルコード書き間違えてました

2020/07/12 21:29

投稿

hara64
hara64

スコア18

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  class ShopRegister_Old : BaseShopRegister{
32
32
 
33
- protected override void CalcTax(uint cost){
33
+ protected override uint CalcTax(uint cost){
34
34
 
35
35
  return cost * 1.05f;
36
36
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  class ShopRegister_New : BaseShopRegister{
44
44
 
45
- protected override void CalcTax(uint cost){
45
+ protected override uint CalcTax(uint cost){
46
46
 
47
47
  return cost * 1.10f;
48
48