Calculate in C#
<p>Hello everyone I am trying to make since of what I am doing wrong or maybe I am over thinking it again. I am trying to create a class and in the class I am calling 2 private variables such as num1 and num2. Then i create a public property that corresponds to num 1 and num2. Then after I create that I need to create a public overriable method called calculate and this will add the two variables together and returns the results. Then I have a add button that I have to  add the code to the button that adds the two numbers and output the result to a messagebox.I have tried a couple different ways and I still am not getting it.
Here is code 1:</p>

<pre><code> public abstract class CalulateValues
{
    protected List&lt;int&gt; values = new List&lt;int&gt;();
    public void AddValue(int value) { values.Add(value); }
    public abstract int Calculate();

}

public class Add : CalulateValues
{
    public override int Calculate()
    {
        return values.Sum(x =&gt; x);
    }
}
</code></pre>

<p>and here is code 2 I tried:</p>

<pre><code>class CalculateValues
{
    private int _num1;
    private int _num2;


    public int Num1
    {
        get
        {
            return _num1;
        }
        set
        {
            _num1 = value;
        }
    }
    public int Num2
    {
        get
        {
            return _num2;
        }
        set
        {
            _num2 = value;
        }
    }
    public virtual int calculate()
    {
        return _num1 + _num2;

    }
}
</code></pre>

<p>Now when it comes with the button I have tried this code:</p>

<pre><code>public partial class Form2 : Form
{
    public Form2()
    {
        CalculateValues myAdd = new CalculateValues();
        MulitplyValues Add = new MulitplyValues();
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {

        int total = myAdd.Add(int.Parse(textBox1.Text), int.Parse(textBox2.Text));    
        MessageBox.Show(total.ToString());

    }
</code></pre>

<p>I am not too sure what I am doing wrong maybe I am not laying out the code the right way. </p>
