
Use the Generic Accessors Class
Generally, from an OOP perspective, the direct access to data members should be prevented. This is why we use accessors: Class UserDetails{public: string getUserName() const; void setUserName(const string& name); string