C++20 sections · 1024 units
Open in Course

Quiz: Static and Const Members

Knowledge check

Check Your Understanding

How do you access a static member variable of a class?

  1. A.Using the this pointer inside member functions
  2. B.Using the dot operator on any object: obj.member
  3. C.Using the class name with scope resolution: ClassName::member
  4. D.Static members cannot be accessed directly
Start the roadmap to answer the quizzes and solve the challenges