“Object” does not contain a definition for “name”

后端 未结 6 2025
误落风尘
误落风尘 2021-01-28 21:39

I\'m having an error message that tells me this:

\'BankAccount.account\' does not contain a definition for \'withdraw\'.

Here\'s my code:

using S         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-28 22:08

    You call base.withdraw(amt) in your savingaccount class, but the base class account does not define this method.

提交回复
热议问题