C
C#8mo ago
Ewan

✅ Why is this not outputting anything?

help!
No description
No description
13 Replies
Angius
Angius8mo ago
Why would it?
Ewan
EwanOP8mo ago
uhh
Angius
Angius8mo ago
The method returns a string, yes
Ewan
EwanOP8mo ago
what can i do with the retunred values?
SpReeD
SpReeD8mo ago
What do you mean by outputting?
Angius
Angius8mo ago
And you do nothing with that string
Ewan
EwanOP8mo ago
how can i print it
Angius
Angius8mo ago
Console.WriteLine() for example
Ewan
EwanOP8mo ago
like uhhh console.writeline but how do i do that here like where do i inlcude that
SpReeD
SpReeD8mo ago
Console.WriteLine(string) or Debug.Print(string)
mg
mg8mo ago
Console.WriteLine() takes a string and the method you wrote returns a string
Angius
Angius8mo ago
string str = pizza.itemInfo();
Console.WriteLine(str);
string str = pizza.itemInfo();
Console.WriteLine(str);
would work
Ewan
EwanOP8mo ago
oh right gotcha thank you!
Want results from more Discord servers?
Add your server