Inheritance is probably the most obvious and easy way to reuse code between classes If you have two classes with the same code, create a common base class for these two and move the similar code into it.