Top "Static-variables" questions

In object oriented programming, a static variable is a variable which belongs to the class and not to object(instance) & a single copy to be shared by all instances of the class.

How do I change a static variables value in PHP?

This is a simplified version of what I want to accomplish: In my script I want a variable that changes …

php static-variables
Access a global static variable from another file in C

In C language, I want to access a global static variable outside the scope of the file. Let me know …

c global static-variables
Where java static variables are stored in memory?

class A{ static int i = 10; static int j = 20; static void getname(){ } } Where will these variable be stored in memory ?

java static-variables
Static variables in C#

In C#, is there a way to put a static variable in a method like VB.Net? Static myCollection As …

c# variables static-variables
Reset class static variable during unit test

I am trying to write a unit test for a legacy code. The class which I'm testing has several static …

java unit-testing legacy-code static-variables
Use of static variables and functions in global scope

Is there a use for flagging a variable as static, when it lies in the global scope of a .cpp …

c++ static global-variables global static-variables
Static variable in asp.net page

I am having one doubt regarding the use of static variable in Asp.net pages. I am having one page …

asp.net static-variables
Access of static variable from one file to another file

I recently came across the question like how to access a variable which declared static in file1.c to another …

c static static-variables internal-link
problem creating object of inner class in java

Here is the code. public class Test { class InnerClass{ } public static void main(String[] args){ InnerClass ic = new InnerClass(); } } It …

java static static-variables inner-classes
PHP OOP - constant vs static variables?

In PHP, What is is the difference between: Constants and static variables? Extending a class and creating its object? I …

php inheritance constants static-variables