summaryrefslogtreecommitdiff
path: root/reference/CPLUSPLUS/SYNTAX/static.htm
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-01-27 11:37:44 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2008-01-27 11:37:44 +0100
commit7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch)
treeb1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/CPLUSPLUS/SYNTAX/static.htm
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/CPLUSPLUS/SYNTAX/static.htm')
-rw-r--r--reference/CPLUSPLUS/SYNTAX/static.htm89
1 files changed, 89 insertions, 0 deletions
diff --git a/reference/CPLUSPLUS/SYNTAX/static.htm b/reference/CPLUSPLUS/SYNTAX/static.htm
new file mode 100644
index 0000000..a3be440
--- /dev/null
+++ b/reference/CPLUSPLUS/SYNTAX/static.htm
@@ -0,0 +1,89 @@
+
+<head>
+<title>static keyword</title>
+</head>
+
+<body bgcolor="#cccccc">
+<font color=brown>
+<hr>
+<center><h1>static keyword</h1></center>
+<hr>
+<p>
+The <b>static</b> keyword has been extended in C++ to have the
+following meanings.
+<p>
+
+<table bgcolor="ivory" border=2>
+<th>C++ Context</th>
+<th>Action</th>
+<tr>
+<td>
+A variable outside of a function.
+</td>
+<td>
+Variable can be seen by all functions in the file. Default.
+</td>
+</tr>
+<tr>
+<td>
+Variable inside a function.
+</td>
+<td>
+The variable is permanent. The variable can only be initalised
+once and only one copy of the variable exists. Recursive calls
+use the same variable.
+</td>
+</tr>
+<tr>
+<td>
+A class member variable
+</td>
+<td>
+Only one copy of the variable exists. All instances of the object
+use the same variable (memory location).
+</td>
+</tr>
+<tr>
+<td>
+A class member function (method).
+</td>
+<td>
+Function can only access static members of the class
+</td>
+</tr>
+</table>
+<p>
+
+<hr>
+<a href="../../C/SYNTAX/storage_class.html#static">Here is the way static works in C</a>
+<hr>
+<h2>See Also:</h2>
+<hr>
+
+</font>
+<font color=black>
+<h2>C References</h2>
+<p>
+
+<hr>
+<p>
+<center>
+<table border=2 width="80%" bgcolor="ivory">
+<tr align=center>
+<td width="25%">
+<a href="../cref.html">Top</a>
+</td><td width="25%">
+<a href="../../C/master_index.html">Master Index</a>
+</td><td width="25%">
+<a href="keywords.html">C++ Keywords</a>
+</td><td width="25%">
+<a href="../../C/FUNCTIONS/funcref.htm">Functions</a>
+</td>
+</tr>
+</table>
+</center>
+<p>
+
+<hr>
+<address>Martin Leslie
+08-Dec-96</address>