Object Oriented Programming
<p>Object Oriented Programming..
I have a problem in my main method, it says cannot find symbol. why?</p>

<p>in this part:</p>

<pre><code>double grossPay = payroll.getHoursWorked * payroll.getPayRate * payroll.getTaxRate ;
</code></pre>

<p>all I know is that I already declared it in my base class
in here:</p>

<pre><code>public class Exercise1 {
    private long hoursWorked;
    private double payRate;
    private double taxRate;   


    public void setHoursWorked(long temp){
        hoursWorked = temp;
    }

    public void setPayRate (double temp){
        payRate = temp;
    }

    public void setTaxRate (double temp){
        taxRate = temp;
    }

    public double getTaxRate (){
        return(taxRate);
    }

    public double getPayRate (){
         return(payRate);
    }

    public double getHoursWorked (){
        return(hoursWorked);
    }
}
</code></pre>

<p>Here is my main class:</p>

<pre><code>public class payroll{
    public static void main(String args[]){
        Exercise1 payroll = new Exercise1();
        payroll.setHoursWorked(28);
        payroll.setPayRate (120.00);
        payroll.setTaxRate (0.30);

        double grossPay = payroll.getHoursWorked * payroll.getPayRate * payroll.getTaxRate;
        System.out.println("Gross pay is:"+ grossPay);   
    }
}
</code></pre>

<p>why keeps asking "cannot find symbol" ?
please help.. I'm new to programming :(</p>
