Get property into abstract class
<p>Here's what I have right now:  </p>

<pre><code>public abstract class SampleClass
{
    public abstract void ShowAll();
    public abstract void ExecuteById(int id);
    public string sampleString{get;}
}

public sealed class FirstClass : SampleClass
{
    public override string sampleString
    {
        get { return "AA"; }
    }


    public override void ShowAll()
    {
        ......
    }

    public override void ExecuteById(int id)
    {
        ......
    }
}

public sealed class SecondClass : SampleClass
{
    public override string sampleString
    {
        get { return "BB"; }
    }

    public override void ShowAll()
    {
    ......
    }

    public override void ExecuteById(int id)
    {
    ......
    }
}
</code></pre>

<p>Now I add a function like this to each of the classes</p>

<pre><code>public void runStoredProcedure(string sampleString)
{
    SQLClass.ExecuteStoredProcedure(sampleString)
}
</code></pre>

<p>One of the ways of doing that is to just add this as an abstract to sampleClass and as an ovverride to FirstClass and SecondClass. Altough the only difference is the passing parameter (samplestring).</p>

<p>The question: is it possible to place this function somewhere(probably in SampleClass) and pass overriden string to this function from First/Second classes to avoid overhead?</p>
