How to initialize a derived class in C#?
<p>I have a base class:</p>

<pre><code>public class Processor
{
    ParsedString _parsedMessage;
    Utilizador _utilizador;

    public Processor(ParsedString parsedMessage, Utilizador utilizador)
    {
        _parsedMessage = parsedMessage;
        _utilizador = utilizador;

    }

    public virtual String Execute()
    {
        string result = null;
        return result;
    }

}
</code></pre>

<p>then a derived class </p>

<pre><code>public  class RegistarAnuncio:Processor
{
    public RegistarAnuncio(ParsedString parsedMessage, Utilizador utilizador)
    {
    }
}
</code></pre>

<p>and the compiler is giving an error saying:</p>

<p>Error   9 No overload for method 'Processor' takes '0' arguments C:\Documents and Settings\user\My Documents\projectos\Licenciatura\Prototipo\Agrinfo\AgrinfoLib\Interfaces\SMS\Processors\RegistarAnuncio.cs 11 16 AgrinfoLib</p>

<p>I googled for C# reference but i did not found a code example where people initialize a base class method with arguments, can anyone give me an help.</p>

<p>Regards,</p>
