TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS MAEDER
from: NEIL HELLER
date: 1997-03-19 19:27:00
subject: STATIC? SAY WHAT?

NH> static int CClassName::MethodName( int SomeVar )
 
TM> Are you sure it looked exactly like this?
Not _exactly_ like that - I changed the names to make my point more
obvious.  The "static int", however, _are_ exactly as they were in the
original.
TM> The keyword "static" is used for two purposes in C++.
 
TM> 1. in class declarations to declare class methods/attributes.
 
TM> 2. in implementation files to prevent the name of a function/
TM>    variable/constant from polluting the global namespace.
I think maybe there are three, as can be seen by the replies I've
already gotten.
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

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™.