Accesing Non Inherited members, via base class
<p>I have an Abstract class called <code>Function</code> which has 2 inheriting classes (actually 6, but for example 2).</p>

<p>The first inheriting class will be called <code>Push</code>, the other <code>Lift</code>.</p>

<p>The base class will have simple methods and members like <code>Execute(int Distance)</code>, <code>Direction</code> etc..</p>

<p>But the child classes will have individual and unique members, for instance <code>Push</code> will have <code>int friction</code>, and <code>Lift</code> will have <code>int gravity</code> (My one is btw more complicated)</p>

<p>So if I have a <code>List&lt; Function &gt;</code>, how would I edit the <code>gravity</code> member if the object were <code>Lift</code> or  the <code>friction</code> if it were <code>Push</code>?</p>

<p><em>Please do not say "Why not make Friction and gravity the same int, and put it in the base class."</em></p>

<p>I was thinking that the base class could have <code>getData()</code> and <code>setData()</code>, which would take an Array and the child classes can use data in the array and handle it differently whilst being able to send different data too.</p>
