How can i use multiple classes in one package in Java?
<p>say I have following two classes :</p>

<pre><code>package MyShape;

public abstract class Shapeclass {
    public abstract double area(double radius);

    protected void print(double area) {
        System.out.print("Area is:" + area);
    }
}
</code></pre>

<p>And another class Triangle ;</p>

<pre><code>package MyShape;

public class Triangle extends Shapeclass {
    double area;

    public double area(double radius) {
        return radius * radius;
    }

    public void print() {
        super.print(area);
    }
}
</code></pre>

<p>I have put both classes in same folder named MyShape But when i try to compile the Triangle class compiler shows following error ;</p>

<pre><code>C:\Users\Desktop\MyShape\Triangle.java:3: error: cannot find symbol
public class Triangle extends Shapeclass
                              ^
  symbol: class Shapeclass
C:\Users\Desktop\MyShape\Triangle.java:13: error: cannot find symbol
super.print(area);
^
  symbol:   variable super
  location: class Triangle
</code></pre>

<p>Please help me to solve it?
stucking my mind on it from last few hours.</p>
