Skip to content

Class Variable

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

Class Variable

Definition: A class variable defines a specific attribute or property for a class. Like the example below. Code Example:

class student
{
  private:
    string name;
    string major;
    int numClasses; 
    double GPA;
  public:
  etc...
}
  • 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