© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
✅ static r public? - C#
C
C#
•
2y 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.
62,470
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
2y ago
Properly understanding Public Static
C
C# / help
3y ago
Public, Private, and Static Modifiers
C
C# / help
4mo ago
public static variable not changing
C
C# / help
4y ago