How to call inherited method of superclass from the overridden subclass method? : <p>I have a class <strong>shape</strong> that has a toString() method. I have another class <strong>circle</strong> that extends shape. This <strong>circle</strong> class overrides the inherited toString() method. What I want to do is call the superclass - <strong>shape's</strong> toString() method from <strong>inside</strong> the <strong>circle's</strong> toString() method. The following is what I have done as of now. I thought calling toString() in the toString() of the <strong>circle</strong> might invoke the inherited toString() but that just goes into an infinite loop.  </p>

<p>Shape class:</p>

<pre><code>class shape{
String color;
boolean filled;
shape()
{
    color = "green";
    filled = true;
}
shape(String color, boolean fill)
{
    this.color = color;
    this.filled = fill;
}
public String toString()
{
    String str = "A Shape with color = " + color + " and filled = " + filled + " .";
    return str;
}
}
</code></pre>

<p>Circle class: </p>

<pre><code>class circle extends shape
{
double radius;
circle()
{
    this.radius = 1.0;
}
public String toString()
{
    String str = "A circle with radius " + radius + " and which is a subclass of " + toString();
    return str;
}
</code></pre>

<p>Please Help!</p>
