I have a base class:
abstract class foo(){
abstract dynamic DefaultValue { get; }
}
I'd like to be able to inherit from this for multiple objects and set a default value:
class bar : foo{
override dynamic DefaultValue { get { return 0.0f; } }
}
How would this be represented in memory? would each object store its own "DefaultValue", or would it only be stored in memory once with each object referenciong it?