24 Replies
what is it showing you?
you should probably double check your assignments in the constructor
nothing
i mean, you aren't telling it to do anything with the value that
Show
returns
so if you expect that to show up somewhere then you have multiple problemsuhhh
ill have a look
you'll need to use methods on the
Console
class like Console.WriteLine
if you want to output something to the consolereturn
doesnt print anything, it just tells the method to... well, return the valuei tried this and its not showing anything
you sure about that?
that will definitely show something
oh wiat
its showing 0
yep
why isnt it showing the 20?
yes, because of the other issue i mentioned
look at your constructor
you know what
x = y;
does, right?makes x into y right?
I'd phrase it as "sets X to the value of Y", but yeah
yeah, so compare that with the code you have in the constructor and you'll probably see the issue
ok ill have a look thanks
looks like your editor might already be trying to suggest a fix
AH
I SEE IT
ok ik where ive gone wrong now
🙂
ok thanks!!
:pepeok: