no suitable method found to override c#

前端 未结 2 1271
说谎
说谎 2021-01-17 16:44

I have tried a few things to fix the error and I just can\'t seem to figure this one out, I would greatly appreciate any help. The error is in both the Triangle and Square c

2条回答
  •  感情败类
    2021-01-17 16:46

    In your square and triangle classes, you need to remove the method parameter from ComputeArea() so that it matches the signature of the base class.

提交回复
热议问题