class Bill{
int billid;
// **setter for the variable**
public void setbillid(int i){
billid=i;
}
// **getter for the variable**
public int getbillid(){
return billid;
}
}
public class Main{
public static void main(String[] args) {
// **This below is generating the error**
Bill b = new Bill();
System.out.println(b.getbillid);
}
}
symbol: variable setbillid
location: variable b of type Bill