How to fix "No overload for method ' ' takes 0 arguments"?
Solution 1:
It's telling you that the method "output" needs arguments. Here's the signature for "output":
public override void output(double o, double tw, double th, double f)
So if you want to call that you need to pass in four doubles.
fresh.output(thing1,thing2,thing3,thing4);
Or to use hard coded values as an example:
fresh.output(1,2,3,4);
Solution 2:
There's no method named output
that takes 0 arguments, there's only one that accepts 4 arguments. You must pass parameters to output()
:
foreach (Numbers fresh in chosen)
{
fresh.output(o, tw, th, f);
}