I have 3 methods.
1 method containing a value of 3000 1 while holding a value of 0.13
and I created another method that I want to multiply by these two digits.
public override int FishPerTank() { return 3000; } public override double WeightOut(double weightOut, double weightIn) { return 0.13; } public override int HowMuchTheFishWeighOutKG() { return (FishPerTank() * WeightOut()); }
I get a syntax error in WeightOut here:
public override int HowMuchTheFishWeighOutKG() { return (FishPerTank() * WeightOut()); }
source share