Content deleted Content added
In the last sentence of the 2nd paragraph, I added "in which" before "they are declared". |
→Static local variables: Java does too have "static" variables |
||
Line 13:
*In [[Visual Basic]] and [[Visual Basic .NET|VB.NET]], static locals declared in class-level functions are local to the object. That is, they act like non-static class-level variables, and each object has its own copy of the variable.
Stricter and more formal [[Object-oriented programming|object-oriented]] languages such as [[Java (programming language)|Java]] and [[C Sharp|C#]], do not allow local variables to be declared static
Instead, "static" variables in these languages are scoped to the class.
Note: This is distinct from other usages of the <code>static</code> keyword, which has several different meanings in various other languages.
|