Original Post
I have a question.. i asked my programming teacher but she either didn''t seem to understand or didn''t know.
say i have a class.. and in this class, i have a static variable ''var''. Through all instances of this class, ''var'' will act as only one variable, having the same value in all classes, correct? Now, if i inherit another class from the first class, will this new class share the same static variable ''var''? or will it have a new static variable ''var'' shared with only data of type of the new class?
Thanks
Falkone