C
C#3mo ago
Ewan

✅ Why is this not outputting anything?

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