Getting child attribute in java
<p>Is it possible to access an attribute from a child class in a main method in java?
For example, in the extended class I have an attribute height and a method:</p>

<pre><code> public String getName()
 {
 return name;
 }
</code></pre>

<p>However I cannot access the name from the main method. 
Thanks.</p>
