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

后端 未结 6 2078
误落风尘
误落风尘 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:07

    As everybody pointed out allready, you should declare the withdraw() method on your base class acocunt, so all the derived classes can inherit the method.

提交回复
热议问题