Shawn Wildermuth wrote:

> 1. Specify in my base class that a constructor style is required (like
> marking it abstract, but C# doesn't support this of course)
> .or.
> 2. Create objects of the Type of my base class and at runtime, up-cast
> them to the new type.

As ugly as it sounds, I would say that you should use a parameter-less
constructor and then mandate an Init function, and use two-step creation.
This at least will be legal in all languages, even if it is a tad on the
less-desirable side.

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to