Herman Schonfeld wrote in a message to Neil Heller:
NH>static int CClassName::MethodName( int SomeVar )
HS> static means that the value assigned to it is only known
HS> with the current compile. It's basically the same as a
HS> const int blah = 12345678;
This is incorrect.
When static is used within a class declaration, it signals that the method or
attribute is class global. This means that the attribute is shared between
all instances of the class, and even exists when no instance is created. For
methods its means that the method is not called on an instance, thus the
method has no access to none static members, other than addressing them
somehow over another instance.
mvg/wr
--- timEd/2 1.01.g3+
---------------
* Origin: LightHouse BBS ==> I am a H.U.G.O. Member ! (2:285/324.3)
|