Automatically assign members and methods to certain classes
<p>I have many classes that have the following members/methods:</p>

<pre><code>private String name;
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public bool isNamed(String name) { return getName().Equals(name); }
</code></pre>

<p>Every time I create a new class that has a member "name", I have to rewrite all these.
Is there a way to write the methods one time and to make them apply to any class I want?</p>
