Difference between revisions of "Language Logic"
esse quam videri
m (→Variables) |
m (→Variables) |
||
Line 2: | Line 2: | ||
==Objects== | ==Objects== | ||
===Variables=== | ===Variables=== | ||
− | Variables are objects that store data, and are given '''names''', '''values''' and sometimes object '''types'''. The ''purpose'' of variables, are to store data for later use in a program. | + | Variables are objects that store data, and are given '''names''', '''values''' and sometimes object '''types'''. The ''purpose'' of variables, are to store data for later use in a program. To do this, the computer's processor takes up a part of its memory and remembers the data you put into the variable. |
<table><th>Examples</th> | <table><th>Examples</th> |
Revision as of 04:17, 8 September 2009
Contents
Objects
Variables
Variables are objects that store data, and are given names, values and sometimes object types. The purpose of variables, are to store data for later use in a program. To do this, the computer's processor takes up a part of its memory and remembers the data you put into the variable.
Examples | |||
---|---|---|---|
Language | Type | Name | Value |
C | const char* | name | = "value"; |
JAVA | final String | Name | = "Value"; |
C# | const string | VariableName | = "SomeValue"; |