Skip to content

Instance Variable

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

Instance Variable

Definition: Has a separate copy or instance in each of the its instances. It is non-static.

class Person {
private:
    string name;
    int age;
}
  • 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