I Want to write a C++class with private members. I am unsure how to correctly declare them and access them via member functions . cloud something provide a detailed example that shows how to set and get private variables inside a class.