SoftChart is public class or not please check once. if its public class can
you check the constructor is public or not. if its not public make it as
public constructor, if you are calling class from different package, sub
class constructor wont allow  to call super class constructors other than
public constructors.

thanks

Srinivas

On Sun, Oct 26, 2008 at 4:50 PM, apple_amateur <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am trying to create a new class, SimpleChart, which inherits from an
> established class, SoftChart. My code is as follows.
>
> import org.soft.chart.SoftChart;
> import org.soft.chart.plot.Plot;
>
> public class SimpleChart extends SoftChart{
>
> Line 11:  public SimpleChart(Plot plot) {
>
>  }
>
> }
>
> However, I received the following error with the constructor. I have
> imported the SoftChart class, so why can't the compiler find the
> constructor SoftChart()? How can I remedy this error?
>
> .../src/SimpleChart.java:11: cannot find symbol
> symbol  : constructor SoftChart()
> location: class org.soft.chart.SoftChart
>  public SimpleChart(Plot plot) {
> 1 error
> BUILD FAILED (total time: 0 seconds)
>
> Thank you
> aa
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to