Hi ,

 You should define your code in static method or instance method to compile.

 check this below code ..........

*class sedan extends Car {


    public int carLength = 19;

    private double localPrice;

    public double getSalePrice(double regularPrice){

         if(carLength >20) {

       localPrice = (regularPrice - (regularPrice*0.05));

     }  else {

      localPrice = (regularPrice - (regularPrice*0.10));
     }

    return localPrice;
}
}*

Thanks

Srinivas



On Thu, Oct 2, 2008 at 5:23 AM, C.E. Thornton <[EMAIL PROTECTED]>wrote:

> What is the "illegal start of type" Mean??
>
> Attached is the image of then offending class
> with the error display (IDE Snapshot)!
>
> --
> Competency and chastity have much in common,
> they both encompass their own punishment!
>
> -- C.E. Thornton -- Hawthorne Press --
>
>
> >
>


-- 
Thanks & Regards

Srinivas
(214-597-0697)

--~--~---------~--~----~------------~-------~--~----~
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