I have four classes which share some arrangement of four properties. I have currently set the base class to be abstract
with each property marked as virtual
. Then in each of the four derived classes I am overriding the properties which it uses and ignoring the others.
The problem is that I can still access all properties in each of the derived classes, regardless of whether I have overriden it from the abstract virtual
property in my base class.
I have a feeling that I am approaching this from the wrong angle. Is there a way to explicitly hide or block properties, or is there a better approach.