I have object like:
import java.math.BigDecimal;
public class Obj {
BigDecimal Sal;
int EMPID;
public Obj(BigDecimal Sal, int EMPID) {
this.Sal= Sal;
this.EMPID= EMPID;
}
}
Now I wanna create Instance of Obj with constructor call.
Obj a = new Obj(45,34); // getting error here
Tried this also: Obj a = new Obj( (BigDecimal) 45,34);
Error:
Obj (java.math.BigDecimal, int) in Obj cannot be applied to (int, int)