Top "Class-variables" questions

A class variable is a variable shared by all instance of that class.

Difference between class variables and class instance variables?

Can anyone tell me about the difference between class variables and class instance variables?

ruby class-variables class-instance-variables
What is the difference between an instance and a class (static) variable in Java

The title of this question is actually a previous examination question and I am looking for clarification / an answer to …

java static instance-variables class-variables
Counter variable for class

I am having problem getting this piece of code to run. The class is Student which has a IdCounter, and …

python class-variables
how to create class variable dynamically in python

I need to make a bunch of class variables and I would like to do it by looping through a …

python class class-variables
getting a dictionary of class variables and values

I am working on a method to return all the class variables as keys and values as values of a …

python class dictionary class-variables
Does Objective-C support class variables?

I know it supports automatic variables, but what about class variables?

objective-c class-variables
Constants or class variables in ruby?

I've been programming in Ruby for a few months now, and I'm wondering when it is appropriate to use constants …

ruby constants class-variables
Access Class method and variable using self

In below example Test class has two instance method and one classmethod In set_cls_var_1 method I set class …

python python-2.7 class class-method class-variables
Where are static class variables stored in memory?

This is a follow-up question to How are static arrays stored in Java memory? . So global variables in C/C++ …

java c++ memory static-members class-variables
Get a static property of an instance

If I have an instance in PHP, what's the easiest way to get to a static property ('class variable') of …

php oop static late-binding class-variables