Virtual/Abstract fields in C#

user489041 picture user489041 · Sep 20, 2011 · Viewed 44.1k times · Source

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

Answer

Justin Niessner picture Justin Niessner · Sep 20, 2011

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.