static variable and static function programs.
Alokkumar11
-3
Newbie Poster
Recommended Answers
Jump to PostSo, what do you wanna know?
A field declared with the static modifier is called a static variable.
Static variables - if they are marked as public they are accessed without a class reference.
For intance:class class1 { public static string myVar = "abc"; } class …
Jump to PostA static variable is one that doesn't require an instance of the class to access.
A static method is one that doesn't require an instance of the class to access.public class MyClass { static public int myStaticInt = 3; public int myNonstaticInt = 5; static public …
All 6 Replies
Mitja Bonca
557
Nearly a Posting Maven
Alokkumar11
-3
Newbie Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
Alokkumar11
-3
Newbie Poster
Mitja Bonca
557
Nearly a Posting Maven
skatamatic
371
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.