G
Gavin
Hi,
I have a class called Device that instantiates another class DbMoney
in this manner:
===
return new DbMoney( money, hardware.getName() );
===
1) Both are in the same package, i.e. my.IMoney & my.Device
2) When I compile them, javac complains with the error:
Object() in java.lang.Object cannot be applied to (my.IMoney,
java.lang.String)
return new DbMoney( money, hardware.getName() )
^
Q) My arguments to the DbMoney constructor match that of its declared
method parameters. So that can't be the problem. What am I doing
wrong ?
Gavin
I have a class called Device that instantiates another class DbMoney
in this manner:
===
return new DbMoney( money, hardware.getName() );
===
1) Both are in the same package, i.e. my.IMoney & my.Device
2) When I compile them, javac complains with the error:
Object() in java.lang.Object cannot be applied to (my.IMoney,
java.lang.String)
return new DbMoney( money, hardware.getName() )
^
Q) My arguments to the DbMoney constructor match that of its declared
method parameters. So that can't be the problem. What am I doing
wrong ?
Gavin