TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: HERMAN SCHONFELD
from: WIM VELDHUIS
date: 1997-03-18 20:30:00
subject: Static? Say what?

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.