I have an abstract parent entity Datapoint
with a number of attributes, and 3 child entities BinaryPoint
, FloatPoint
, and ScalePoint
. Each child should have a value
attribute, but of a different type (bool, float, and int respectively).
It seems like bad design to do anything other than make it an inherited attribute, but I can't find a way to do this. Is there any way to make the attribute generic in the parent entity but not in its children?
Thanks in advance.