© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
16mo ago
•
3 replies
Golbin Machine
✅ static r public?
I was writing code something like this
,
class Physics
{
public int Force
;
}
and I was trying to access the Force variable I have
, but it said I needed the variable to be static
. Why was it asking me this when I already have public down
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ static, public, void
C
C# / help
16mo ago
Properly understanding Public Static
C
C# / help
2y ago
Public, Private, and Static Modifiers
C
C# / help
2mo ago
public static variable not changing
C
C# / help
4y ago