How do I call the method in the sub-class in java?
<p>I have some sub classes and one base.
Base is <code>movie</code>, and I would like to call the method in the <code>Fiction</code> method which is sub-class.
The method will be called from other method called (management.java).
Fiction has its own field called <code>typeOfmovie</code> and getter and setter method.
What I'm trying to do is, I would like to call that getter or setter method.
But even if I create like:</p>

<pre><code>Movie m = new Fiction();
</code></pre>

<p>I cannot call getter or setter method from there.
The only way is I should create abstract method in the <code>movie</code> class?
I could, but as the number of fields getting bigger, I thought the base class might get messy.</p>

<p>Is that only way I can do?</p>

<p>Also, the field is package private (default), but I still cannot access that way either
Can you give me an advice please?</p>

<p>Thanks</p>
