Virtual/Abstract fields in C#

前端 未结 9 1213
逝去的感伤
逝去的感伤 2020-12-16 10:19

Is it possible to have a virtual/abstract field in a C# class? If so, how is it done?

9条回答
  •  悲&欢浪女
    2020-12-16 10:47

    A Virtual/Abstract field? No. Fields are just there to hold data. There's nothing to implement.

    You can define a Virtual/Abstract Property though.

提交回复
热议问题