Object-Oriented Programming
<p>I am new to C#. I have a Persons class with this function: </p>

<pre><code>public virtual void InputPerson(Persons P)
    {           
        P.ID = int.Parse(Console.ReadLine());
        Console.WriteLine("Titel:");
        P.Titel = Console.ReadLine();
        Console.WriteLine("Name:");
        P.Name = Console.ReadLine();
        Console.WriteLine("Surname:");
        P.Surname = Console.ReadLine();         
    }
</code></pre>

<p>And I have a User class that inherits form this Persons class. I now need to create a InputUser function in the User class that makes use of this InputPerson function in the Persons class without rewriting all the code from the InputPerson function to the InputUser function. Here is my code from the InputUser function:</p>

<pre><code>public override void InputPerson(User U)
    {
        Console.WriteLine("Please enter a Customer:");
        Console.WriteLine("Customer ID:");
        base.InputPerson;
        Console.WriteLine("Telephone Number:");
        U.Telephone = int.Parse(Console.ReadLine());

        Console.WriteLine();
    }
</code></pre>

<p>This InputUser code gives me a error stating: </p>

<pre><code>'UserCustomerNotes.User.InputPerson(UserCustomerNotes.User)': no suitable method found to override
</code></pre>

<p>Can anyone please help?</p>

<p>Thanks in advance</p>
