0
Xyz does not exist in the current context
i don't know what I'm doing but this professor is no help and I need to get this done. I need to display text from a class but this happens every time https://code.sololearn.com/c0BPlqAyR9Ch/?ref=app
3 Respuestas
+ 9
It may help if you linked us to your code so that people can view it and identify the error.
+ 1
I'm a CPP user myself in a class for c# in college. and I usually do my stuff in main for the most part when it's something as simple as outputting code. oop is still new to me
0
idk what your code is that your referring to but judging by your code in your profile you need to make the class public (poem) and create a object from that class. e.g.
poem name = new poem ();
the you would call the function like
name.functionName ();
disclaimer:i dont know c# at all so i just converted my cpp knowledge to c# so may not be 100% correct.