static

"static" is also a: user

created by BeeJay
(idea) by Broccolist (4.1 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 9:49:37
Statics are a feature introduced in C and then expanded in C++. C introduced static local variables, which are allocated on the global heap but can only be accessed by one function. C++ then introduced static member data, which is also allocated on the global heap and even has to be declared separately of the class declaration, as well as static methods, which are not passed the "this" pointer but otherwise are the same as normal methods.
(idea) by 0r4c13 (?) (print)   ?   (I like it!) Sat Nov 13 1999 at 9:49:37
general definition: unchanging, constant. a contrasting meaning of static is representative of noise as in telephone line noise, wireless communication such as analog cellular telephones and radio transmission interference by frequency modulation or amplitude modulation.
(idea) by bitter_engineer (6.6 y) (print)   ?   (I like it!) Wed Jun 21 2000 at 1:41:48
The static keyword has a slightly different meaning in Java than in C or C++. Since Java is a purely Object-Oriented Language, static variables are always members of a class, and never local variables of a method. Static objects are still created on the global heap and are not associated with any particular instance of the class.

You can also define a static block of code that will initialize your static objects the first time the class is instantiated. This can save some typing if you have several constructors.

(idea) by jafuser (1 y) (print)   ?   (I like it!) Wed Oct 11 2000 at 2:24:04
Static means stagnation, unchanging, or not moving.

It is also a form of electricity which we are frequently reminded of during cold weather; upon reaching for a grounded metal object, we can experience several thousand volts of static electricity (fortunately the amperage is too low to do any damage).

Static friction is the friction which must be overcome to put an object into initial motion. Static friction (such as that on a book lying flat on a table) makes the initial movment of the object require more energy than what is required to overcome the object's dynamic friction (after the book is already in motion).

(thing) by ariels (4.5 d) (print)   ?   (I like it!) Thu Dec 14 2000 at 13:50:14
static type definitions in C serve 2 somewhat different purposes. In all cases, they define an item of data which is global in the sense that only one copy exists for the entire runtime of the program. It can be viewed as setting a peculiar "local" scope for a global variable or function.

The scope of an object defined static follows the usual scoping rules for C: for a variable, till the end of the block (typically the function) in which it is defined, or till the end of the file, if defined outside any functions; for a function, merely till the end of the file (in C, functions cannot be defined inside functions). This aspect of staticness refers to the visibility of the object. For a function definition (or declaration), this is the only effect -- functions don't have storage types.

The storage type of a variable defined static is global, even in an inner block scope rather than file scope. This means that the variable retains its value between calls to the function. This behaviour is very different from the default automatic status of variables defined in a block, which only exist inside the block. In particular, you may freely return a pointer to (or into) a static variable's storage from a function, but you cannot do so for an automatic variable.

(definition) by Webster 1913 (print) Wed Dec 22 1999 at 3:23:51

Stat"ic (?), Stat"ic*al (?), a. [Gr. causing to stand, skilled in weighing, fr. to cause to stand: cf. F. statique. See Stand, and cf. Stage.]

1.

Resting; acting by mere weight without motion; as, statical pressure; static objects.

2.

Pertaining to bodies at rest or in equilibrium.

Statical electricity. See Note under Electricity, 1. -- Statical moment. See under Moment.

 

© Webster 1913.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.