Please ref this image url for my question.
constructor input with paraname:value
How to pass the constructor input like ‘paraname:value’ new Employee( baseSalary:50_000, hourRate:20)
and also
I can not pass the compile JDK 15 for ‘50_000’ How to do this?
Is this only for intellj ide?
Thank you
Don’t write the parameter names when passing arguments to constructors or methods. The IDE will automatically add them for readability but they are nothing you type.
Just type new Employee(50_000, 20)
new Employee(50_000, 20)
Ok, I understand. Thanks your help.