Retuning and Abstract Class?
<p>I have an Abstract class that is like:</p>

<pre><code>public abstract class myClass{    

    public abstract double methodOne();
    // returns the data member value for standard deviation

    public abstract double methodTwo(String myString, int myInt);
    // returns the data member value for mean percentage

}
</code></pre>

<p>Then I have a class which extends this:</p>

<pre><code>public class Abstract extends myClass{

    public double methodOne() {
        return 0.00;
    }

    public double methodTwo(String myString, int myInt) {
        return 20.00;   
    }    
}
</code></pre>

<p>Then finally I have a normal method that's return type is myClass. </p>

<pre><code>public myClass anotherMethodOfMine(String myString, int myInt){

}
</code></pre>

<p>A simple question really, I just don't understand how a method can return another class that itself contains methods? Could someone explain it to me?</p>

<p>TIA</p>
