I have a base class Character which has several classes deriving from it. The base class has various fields and methods.
All of my derived classes use the same base
I had the same problem, and I solved it by replacing my constructor with a factory method like this:
A is the parent class.
public static T getChild(int number) where T:A, new() { T child = new T(); T._number = number; return child; }
You can create a Child class with
Child b = A.getChild(2);