class vars are not virtual that is, not every derived class has its own field, they are shared...it's just a form of a global variable tied to the class type and accessible in other classes when declared as public or protected....what you would need is a "virtual class var" which would be class-type specific....such a thing does not exist and I do not even know any language which implements a construct like that....Originally Posted by Chebmaster
Bookmarks