Difference between revisions of "Language Logic"
esse quam videri
m (→Variables) |
m (→Variables) |
||
Line 15: | Line 15: | ||
<tr style="border:1px solid black;"> | <tr style="border:1px solid black;"> | ||
− | <td>C | + | <td>C</td> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<td style="background:blue;">const char* </td> | <td style="background:blue;">const char* </td> | ||
<td style="background:yellow;">name</td> | <td style="background:yellow;">name</td> | ||
Line 33: | Line 26: | ||
<td style="background:yellow;">Name</td> | <td style="background:yellow;">Name</td> | ||
<td style="background:gray;"> = "Value";</td> | <td style="background:gray;"> = "Value";</td> | ||
+ | </tr> | ||
+ | |||
+ | <tr style="border:1px solid black;"> | ||
+ | <td>C#</td> | ||
+ | <td style="background:blue;">const string </td> | ||
+ | <td style="background:yellow;">VariableName</td> | ||
+ | <td style="background:gray;"> = "SomeValue";</td> | ||
</tr> | </tr> | ||
Revision as of 04:11, 8 September 2009
Contents
Objects
Variables
Variables are objects that are given names, values and sometimes object types. The purpose of variables, are to store data for use later in a program.
Examples | |||
---|---|---|---|
Language | Type | Name | Value |
C | const char* | name | = "value"; |
JAVA | final String | Name | = "Value"; |
C# | const string | VariableName | = "SomeValue"; |