Search code examples
c#.netoopabstract-class

Virtual/Abstract fields in C#


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


Solution

  • 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.