How can I cancel certain functions while inheriting?
<p>This is a fairly odd question that someone asked me recently and I couldn't think of a achieve  this.</p>

<p>Let <code>Person</code> be a class with several public functions and attributed. Say one of the attributes is color of the eye, with two functions: <code>getColor()</code> and <code>setColor()</code>.</p>

<p>Now let <code>Teacher</code> extend to <code>Person</code> to inherit it's properties.</p>

<p>Her question: <strong>What if I don't want to inherit <code>getColor()</code> and <code>setColor()</code> but the rest of the functions?</strong></p>

<p>My initial thought was to <code>@Override</code> all of them and return void, doing nothing. However, I don't think this is safe or preferred method, maybe there is a more elegant solution?</p>
