Skip to content
Delton Hughes edited this page Apr 29, 2023 · 1 revision

Static

Definition: Creates a variable which is held in the heap. Allows for said variable to be shared.

Code Example:

 //static variable
 class Person{
     static int index_number; 
    };
  • Each term will have as follows: -> A definition on the term -> A code example some being in great detail if needed, for example a class example is going to be longer than a member variable. -> Lastly, a picture which in some way relates to the term but may also relate to other terms as well.
Clone this wiki locally