Classes and Objects Q3

Quiz 3

  1. Define the term “class”
  2. Define the term “static” member variables.
  3. Why are you able to access static member variables using the class::var syntax you cannot use the same syntax for ordinary member variables?
  4. Define the term “static member function.”
  5. Why are static member functions prohibited from accessing ordinary member variables?
  6. Why can they access static member variables?
  7. What is the difference between a macro and an inline function?