creating new class from existing class: inheritance or partial classes?
<p>I have a class that defines an object like this:</p>

<pre><code>public class MyClass{

   public int TheInt { get; set; }

   public void SomeMethod() { ... }
}
</code></pre>

<p>Actually, there are several more properties and methods. Now I want to create a new class <code>MyEnhancedClass</code> that has all the properties and methods of <code>MyClass</code> and that also has 2 methods and 4 properties of its own.</p>

<p>For now, my code has two distinct classes that look very similar; I'm looking to refactor these classes and I'm wondering about partial classes and inheritance. What the best way to do this? Inheritance or partial classes? I know this is a basic OOP question but please bear with me.</p>

<p>Thanks for your suggestions.</p>
