Overridden constructors must have the same parameters, otherwise compiler doesn't know how to call them. (And you don't know that either --- you do you want to call classType.Create, if you don't know whether it should be classType.Create(123) or classType.Create('aaa') ?).Originally Posted by Brainer
Various solutions are possible here. E.g. you can make a couple of overloaded virtual constructors. Or you can make one constructor that takes something like "a: array of const", this will allow you to pass variable-length array with any types, like for Format. Or you can use variants (many Pascal programmers dislike them, but sometimes...).
Bookmarks