Ask coding questions

← Back to all posts
Why is this class being declared as static without static keyword C#
JackRissling (0)

I'm creating this program after awhile of not using C# and using this to then implement into a visual studio project but this class I've declared as with the name "Node" is being declared as a static class when I don't want it to be one when I didn't add the static keyword. How can I fix this and if possible can you explain why this is happening. Thank you in advance!

Coder100 (18187)

classes can't be static
but their methods can be

SixBeeps (5221)

Your Node class doesn't seem to be saying anything about it being static. Where are you seeing it?