Originally Posted by
hardwired
[i]"cannot find symbol - variable getCost[i/]
Sounds like you were using
getCost like you would a variable/field
Maybe you left off the "()" operator. Try
instead.
when i call the job in constructor then this time says "cost has private access in job".
Change the access modifier of the
getCost method from
private to
public so that it can be accessed from outside the class.